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
- DocumentOrderQuery.cs
- FloaterBaseParaClient.cs
- WebAdminConfigurationHelper.cs
- WebPartActionVerb.cs
- ClientSettings.cs
- RecognizerInfo.cs
- TreeNodeMouseHoverEvent.cs
- DirectionalLight.cs
- EllipseGeometry.cs
- PerformanceCounterCategory.cs
- ThrowHelper.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- FontResourceCache.cs
- ToolStripRendererSwitcher.cs
- DataSourceConverter.cs
- DelegateTypeInfo.cs
- SafeNativeMethods.cs
- ObjectTypeMapping.cs
- UIElementCollection.cs
- CreateParams.cs
- CapabilitiesPattern.cs
- GACIdentityPermission.cs
- Stackframe.cs
- ApplicationFileParser.cs
- DesignerVerbCollection.cs
- QilPatternVisitor.cs
- ReadOnlyDictionary.cs
- ListBoxAutomationPeer.cs
- SynchronizationScope.cs
- securitymgrsite.cs
- OracleBFile.cs
- SafeRegistryHandle.cs
- CmsInterop.cs
- SubclassTypeValidator.cs
- ResponseBodyWriter.cs
- PriorityQueue.cs
- IMembershipProvider.cs
- UdpSocketReceiveManager.cs
- ScriptModule.cs
- IndentTextWriter.cs
- WCFServiceClientProxyGenerator.cs
- StateMachineExecutionState.cs
- HtmlMeta.cs
- DbDataSourceEnumerator.cs
- RNGCryptoServiceProvider.cs
- ConfigurationException.cs
- Process.cs
- MulticastIPAddressInformationCollection.cs
- WinEventWrap.cs
- TransportSecurityHelpers.cs
- RepeatInfo.cs
- TextDocumentView.cs
- ListViewDataItem.cs
- GorillaCodec.cs
- UnsignedPublishLicense.cs
- ServerValidateEventArgs.cs
- SecUtil.cs
- AssemblyAssociatedContentFileAttribute.cs
- WindowsSolidBrush.cs
- Queue.cs
- XPathNavigatorReader.cs
- Soap.cs
- ThemeDictionaryExtension.cs
- AQNBuilder.cs
- AuthenticodeSignatureInformation.cs
- Compilation.cs
- Rule.cs
- NamespaceEmitter.cs
- DbExpressionRules.cs
- ProjectionPlanCompiler.cs
- FixedTextBuilder.cs
- Style.cs
- FormsAuthenticationModule.cs
- ResXResourceWriter.cs
- ConfigDefinitionUpdates.cs
- FileCodeGroup.cs
- ParentUndoUnit.cs
- XmlChildEnumerator.cs
- ListViewItemSelectionChangedEvent.cs
- Query.cs
- DataSourceSelectArguments.cs
- EpmContentDeSerializer.cs
- Error.cs
- ProbeDuplex11AsyncResult.cs
- AnnouncementDispatcherAsyncResult.cs
- RawStylusInputReport.cs
- Triplet.cs
- EndPoint.cs
- DynamicValueConverter.cs
- CngKeyCreationParameters.cs
- XmlSchemaSet.cs
- BitStream.cs
- NetSectionGroup.cs
- XMLSyntaxException.cs
- ButtonStandardAdapter.cs
- CancelEventArgs.cs
- DataGridRowAutomationPeer.cs
- PackageProperties.cs
- RegisteredExpandoAttribute.cs
- BitmapCodecInfoInternal.cs