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
- SplineKeyFrames.cs
- KeyEvent.cs
- TextRenderer.cs
- BitmapEffectInput.cs
- SecurityUtils.cs
- NoClickablePointException.cs
- TraceHwndHost.cs
- AspNetHostingPermission.cs
- SystemWebExtensionsSectionGroup.cs
- ParseChildrenAsPropertiesAttribute.cs
- __TransparentProxy.cs
- OutputCacheProfile.cs
- _UncName.cs
- HybridDictionary.cs
- X509ClientCertificateAuthenticationElement.cs
- ColumnMapTranslator.cs
- StringBuilder.cs
- ConnectionPoint.cs
- AnimatedTypeHelpers.cs
- GeneralTransform3DGroup.cs
- DesigntimeLicenseContext.cs
- InternalConfigConfigurationFactory.cs
- FilterQuery.cs
- SQLConvert.cs
- SevenBitStream.cs
- ScrollItemPatternIdentifiers.cs
- CacheChildrenQuery.cs
- ScriptResourceAttribute.cs
- XmlWrappingReader.cs
- BitmapEffectGroup.cs
- ListBox.cs
- OdbcPermission.cs
- LinkArea.cs
- BrowserDefinitionCollection.cs
- XmlEntity.cs
- RouteCollection.cs
- ConfigsHelper.cs
- RelativeSource.cs
- SqlBuffer.cs
- DataGridViewRowCollection.cs
- ProviderConnectionPointCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- SaveFileDialog.cs
- Int16Storage.cs
- XsltOutput.cs
- DataTableExtensions.cs
- BrowserCapabilitiesFactory.cs
- TextCompositionEventArgs.cs
- CodeNamespace.cs
- CssTextWriter.cs
- ComponentResourceKey.cs
- oledbmetadatacolumnnames.cs
- SafeMemoryMappedFileHandle.cs
- GlyphRunDrawing.cs
- BitStack.cs
- BindingContext.cs
- ExecutionContext.cs
- SHA1CryptoServiceProvider.cs
- SaveFileDialog.cs
- RawMouseInputReport.cs
- StandardCommands.cs
- Message.cs
- XmlEnumAttribute.cs
- Buffer.cs
- BookmarkCallbackWrapper.cs
- CombinedGeometry.cs
- GridItemCollection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- LocalBuilder.cs
- EventToken.cs
- ExpressionList.cs
- AssociationSet.cs
- ValueType.cs
- RoutedEventHandlerInfo.cs
- SqlCacheDependency.cs
- BinHexDecoder.cs
- XmlKeywords.cs
- DataGridItem.cs
- TimeStampChecker.cs
- CreateSequence.cs
- SafeEventLogWriteHandle.cs
- GC.cs
- SoapCommonClasses.cs
- WSHttpBinding.cs
- X509ChainElement.cs
- UserNameSecurityTokenProvider.cs
- DisposableCollectionWrapper.cs
- TraceSource.cs
- RequestChannel.cs
- StorageFunctionMapping.cs
- Debugger.cs
- CommonObjectSecurity.cs
- GridEntryCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- SafeNativeMethods.cs
- OdbcConnection.cs
- XmlNodeChangedEventManager.cs
- DataGridViewLinkCell.cs
- VisualStateManager.cs
- RouteItem.cs