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
- CharacterMetricsDictionary.cs
- EdmConstants.cs
- TypeForwardedToAttribute.cs
- DataControlImageButton.cs
- ExpressionVisitor.cs
- WebServiceEnumData.cs
- EventTrigger.cs
- InternalsVisibleToAttribute.cs
- TypeUnloadedException.cs
- Membership.cs
- ToggleButton.cs
- RunInstallerAttribute.cs
- UnionExpr.cs
- UIElementIsland.cs
- TypeTypeConverter.cs
- BaseAsyncResult.cs
- FormsAuthentication.cs
- DataPagerCommandEventArgs.cs
- SqlFunctions.cs
- remotingproxy.cs
- RenderingBiasValidation.cs
- DiscoveryDocument.cs
- Parsers.cs
- SqlServer2KCompatibilityAnnotation.cs
- ImageField.cs
- ListViewItem.cs
- ApplicationSettingsBase.cs
- StatusBarDrawItemEvent.cs
- X509ChainElement.cs
- HierarchicalDataSourceConverter.cs
- HMACRIPEMD160.cs
- HotSpot.cs
- XmlCDATASection.cs
- FontNameEditor.cs
- StylusButtonCollection.cs
- PathStreamGeometryContext.cs
- ChannelServices.cs
- AssociationProvider.cs
- StringStorage.cs
- ExtensionQuery.cs
- XmlSchemaValidator.cs
- AssemblyBuilder.cs
- EntityClassGenerator.cs
- Types.cs
- DbUpdateCommandTree.cs
- SinglePageViewer.cs
- TransformGroup.cs
- CurrencyWrapper.cs
- mansign.cs
- Int32.cs
- ToolStrip.cs
- StatusBarPanelClickEvent.cs
- UserInitiatedNavigationPermission.cs
- OperatingSystem.cs
- NetworkCredential.cs
- ControlDesigner.cs
- HtmlShim.cs
- AxImporter.cs
- WebPartEventArgs.cs
- _NativeSSPI.cs
- TextTreeExtractElementUndoUnit.cs
- GetIndexBinder.cs
- BitVector32.cs
- EpmCustomContentWriterNodeData.cs
- PrintPreviewControl.cs
- EncoderBestFitFallback.cs
- FacetDescriptionElement.cs
- HatchBrush.cs
- UnsignedPublishLicense.cs
- Vector.cs
- TraceEventCache.cs
- StartUpEventArgs.cs
- PropertyToken.cs
- List.cs
- HyperLinkField.cs
- Delegate.cs
- RayMeshGeometry3DHitTestResult.cs
- DataTableMapping.cs
- FrameworkPropertyMetadata.cs
- PerfCounterSection.cs
- AssemblyCache.cs
- RelatedPropertyManager.cs
- TableLayoutColumnStyleCollection.cs
- Terminate.cs
- InputManager.cs
- PerformanceCounterCategory.cs
- OneToOneMappingSerializer.cs
- Setter.cs
- WebPartsPersonalization.cs
- WindowVisualStateTracker.cs
- ViewStateException.cs
- TypeSource.cs
- RequestQueue.cs
- SerialReceived.cs
- WinInet.cs
- InputLanguageSource.cs
- PropertyRecord.cs
- TimeEnumHelper.cs
- OleDbStruct.cs
- IdnMapping.cs