Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Media / Animation / SetStoryboardSpeedRatio.cs / 1 / 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
- CatalogPartChrome.cs
- AssemblyCollection.cs
- BindingGroup.cs
- ItemsPresenter.cs
- Psha1DerivedKeyGeneratorHelper.cs
- DescendentsWalkerBase.cs
- CodeCatchClauseCollection.cs
- SqlTopReducer.cs
- WindowProviderWrapper.cs
- DataObjectMethodAttribute.cs
- Monitor.cs
- TextEditorContextMenu.cs
- FileUpload.cs
- ProcessModelInfo.cs
- EnumDataContract.cs
- CodeValidator.cs
- TimeSpanValidator.cs
- CustomAttribute.cs
- RecordManager.cs
- ProcessInputEventArgs.cs
- InheritanceContextChangedEventManager.cs
- DropSource.cs
- DataExpression.cs
- PartitionedDataSource.cs
- RepeaterCommandEventArgs.cs
- ProcessHostServerConfig.cs
- SwitchAttribute.cs
- securitymgrsite.cs
- BinaryConverter.cs
- Menu.cs
- DescendantBaseQuery.cs
- TextTreeTextNode.cs
- SqlBulkCopyColumnMapping.cs
- WeakReference.cs
- mediaclock.cs
- CollectionBuilder.cs
- SizeConverter.cs
- LingerOption.cs
- PopupRoot.cs
- SetState.cs
- ImmutablePropertyDescriptorGridEntry.cs
- CodeIdentifiers.cs
- StrongName.cs
- BaseTreeIterator.cs
- BookmarkList.cs
- WhitespaceRule.cs
- WebServiceParameterData.cs
- WebServiceData.cs
- StylusDownEventArgs.cs
- DesignerAttribute.cs
- AstNode.cs
- SQLConvert.cs
- XsltCompileContext.cs
- DbDataReader.cs
- XmlMemberMapping.cs
- CursorConverter.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- ConnectionPoolManager.cs
- FaultHandlingFilter.cs
- wgx_commands.cs
- ProtocolElementCollection.cs
- ArraySubsetEnumerator.cs
- HttpResponseInternalBase.cs
- NotifyInputEventArgs.cs
- ConfigXmlWhitespace.cs
- StringArrayConverter.cs
- LineServicesCallbacks.cs
- ObjectTokenCategory.cs
- AuthenticateEventArgs.cs
- Stack.cs
- SpeechEvent.cs
- BroadcastEventHelper.cs
- ScriptModule.cs
- Ticks.cs
- DeclaredTypeValidator.cs
- UpWmlMobileTextWriter.cs
- WSSecureConversationFeb2005.cs
- EditorPart.cs
- WebPartActionVerb.cs
- DataGridParentRows.cs
- GregorianCalendarHelper.cs
- AssemblyHash.cs
- LongValidator.cs
- FileSystemEventArgs.cs
- Line.cs
- Quad.cs
- WorkflowPersistenceContext.cs
- SamlNameIdentifierClaimResource.cs
- Expressions.cs
- TypeUsage.cs
- MaskDescriptors.cs
- GradientStop.cs
- TextDecorationCollectionConverter.cs
- GeometryCollection.cs
- QueueProcessor.cs
- ScaleTransform.cs
- MetadataCache.cs
- SamlAuthorityBinding.cs
- KeyConverter.cs
- AutomationEvent.cs