Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / SetStoryboardSpeedRatio.cs / 1305600 / SetStoryboardSpeedRatio.cs
/****************************************************************************\ * * File: SetStoryboardSpeedRatio.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * speed ratio is set to the given parameter. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.ComponentModel; // DefaultValueAttribute using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// SetStoryboardSpeedRatio will set the speed for its Storyboard reference when /// it is triggered. /// public sealed class SetStoryboardSpeedRatio : ControllableStoryboardAction { ////// A speed ratio to use for this action. If it is never explicitly /// specified, it is 1.0. /// [DefaultValue(1.0)] public double SpeedRatio { get { return _speedRatio; } set { if (IsSealed) { throw new InvalidOperationException(SR.Get(SRID.CannotChangeAfterSealed, "SetStoryboardSpeedRatio")); } _speedRatio = value; } } ////// Called when it's time to execute this storyboard action /// internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) { Debug.Assert( containingFE != null || containingFCE != null, "Caller of internal function failed to verify that we have a FE or FCE - we have neither." ); if( containingFE != null ) { storyboard.SetSpeedRatio(containingFE, SpeedRatio); } else { storyboard.SetSpeedRatio(containingFCE, SpeedRatio); } } double _speedRatio = 1.0; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Configuration.cs
- XmlDomTextWriter.cs
- RequestSecurityTokenResponse.cs
- SharedPersonalizationStateInfo.cs
- XPathDocumentNavigator.cs
- BitmapInitialize.cs
- PropertyChangedEventManager.cs
- IInstanceContextProvider.cs
- Reference.cs
- BezierSegment.cs
- XsdBuilder.cs
- WeakHashtable.cs
- DesignerTransactionCloseEvent.cs
- WebExceptionStatus.cs
- Roles.cs
- ColorConverter.cs
- MiniParameterInfo.cs
- DragEventArgs.cs
- LocationSectionRecord.cs
- SpeechRecognizer.cs
- ConnectAlgorithms.cs
- ResolveMatchesApril2005.cs
- ListItemsPage.cs
- MessagingDescriptionAttribute.cs
- GACIdentityPermission.cs
- ImageField.cs
- Msmq.cs
- DBCommand.cs
- WebControlAdapter.cs
- AttachedPropertyMethodSelector.cs
- HttpCapabilitiesSectionHandler.cs
- FunctionImportMapping.cs
- WebPartsSection.cs
- Rectangle.cs
- XamlStackWriter.cs
- ResizeGrip.cs
- ZipIOFileItemStream.cs
- ItemMap.cs
- HttpStreamFormatter.cs
- EditorZoneBase.cs
- X509SecurityTokenAuthenticator.cs
- AdornerDecorator.cs
- ServiceEndpoint.cs
- DataServiceRequestException.cs
- ClassHandlersStore.cs
- Pkcs9Attribute.cs
- XPathDocumentIterator.cs
- GeneralTransform2DTo3DTo2D.cs
- EdmItemError.cs
- InfocardExtendedInformationEntry.cs
- FileDialogCustomPlace.cs
- PageThemeParser.cs
- TdsEnums.cs
- login.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- StylusDownEventArgs.cs
- RegistrationServices.cs
- OleDbEnumerator.cs
- ColorMatrix.cs
- XmlNodeReader.cs
- DependencyPropertyKey.cs
- ConfigurationPropertyAttribute.cs
- LabelLiteral.cs
- XmlEncodedRawTextWriter.cs
- SelectorItemAutomationPeer.cs
- List.cs
- ScrollBarRenderer.cs
- UniformGrid.cs
- TagNameToTypeMapper.cs
- PropertySegmentSerializer.cs
- XPathItem.cs
- DataGridItemEventArgs.cs
- UshortList2.cs
- PropertyDescriptorGridEntry.cs
- DrawingServices.cs
- ExpressionLexer.cs
- FlowPosition.cs
- TraceSource.cs
- ListDictionary.cs
- ProxyWebPartConnectionCollection.cs
- ExpandableObjectConverter.cs
- GridViewRowPresenter.cs
- Mouse.cs
- ProcessHostServerConfig.cs
- TextRunCache.cs
- TabItemAutomationPeer.cs
- MouseGesture.cs
- TileBrush.cs
- DivideByZeroException.cs
- BulletedList.cs
- FontResourceCache.cs
- Permission.cs
- EventHandlerList.cs
- IISMapPath.cs
- ItemMap.cs
- _HTTPDateParse.cs
- MorphHelper.cs
- DataMemberFieldConverter.cs
- ProcessModule.cs
- IgnoreSectionHandler.cs