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
- SessionStateContainer.cs
- DispatcherFrame.cs
- SqlBulkCopyColumnMapping.cs
- SqlUtils.cs
- DragDeltaEventArgs.cs
- SiteMapSection.cs
- Odbc32.cs
- BuildProviderAppliesToAttribute.cs
- RefType.cs
- CommonGetThemePartSize.cs
- NavigationHelper.cs
- BaseAddressPrefixFilterElement.cs
- SqlDataSourceView.cs
- TemplateFactory.cs
- CacheVirtualItemsEvent.cs
- TableDetailsRow.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- HostingEnvironmentSection.cs
- FlowNode.cs
- RSATokenProvider.cs
- ParameterCollection.cs
- IdentityReference.cs
- SqlCacheDependency.cs
- ConstructorBuilder.cs
- RijndaelCryptoServiceProvider.cs
- URIFormatException.cs
- OpCellTreeNode.cs
- SQLInt32.cs
- BinaryUtilClasses.cs
- BinHexEncoding.cs
- XmlSchemaObject.cs
- SmiEventStream.cs
- CommonGetThemePartSize.cs
- StyleBamlRecordReader.cs
- DataGridState.cs
- WindowsFormsHelpers.cs
- HtmlElementEventArgs.cs
- IODescriptionAttribute.cs
- ISO2022Encoding.cs
- LambdaCompiler.Lambda.cs
- Int16AnimationBase.cs
- CurrentChangingEventManager.cs
- DataGridViewRowHeaderCell.cs
- IPGlobalProperties.cs
- SHA1Managed.cs
- ResourceProviderFactory.cs
- Int32.cs
- EditingCommands.cs
- XmlArrayItemAttribute.cs
- DurationConverter.cs
- BypassElementCollection.cs
- util.cs
- XmlAttributes.cs
- SelectingProviderEventArgs.cs
- Queue.cs
- GetReadStreamResult.cs
- ApplicationCommands.cs
- InternalResources.cs
- GridToolTip.cs
- XamlFigureLengthSerializer.cs
- DesignerTextViewAdapter.cs
- TemplateBindingExpressionConverter.cs
- NotConverter.cs
- _FixedSizeReader.cs
- DeferredSelectedIndexReference.cs
- XmlEncodedRawTextWriter.cs
- GridItemPatternIdentifiers.cs
- InputLanguageSource.cs
- CustomValidator.cs
- ImageFormat.cs
- TextElementEditingBehaviorAttribute.cs
- BamlStream.cs
- Authorization.cs
- ClockController.cs
- BitmapSource.cs
- UserNameServiceElement.cs
- EntityDataSourceUtil.cs
- MetadataSource.cs
- AdornerLayer.cs
- Group.cs
- AffineTransform3D.cs
- ExpressionStringBuilder.cs
- SqlClientWrapperSmiStream.cs
- HwndHost.cs
- ObjectDataSourceFilteringEventArgs.cs
- ReturnEventArgs.cs
- _SpnDictionary.cs
- adornercollection.cs
- TextClipboardData.cs
- DurableServiceAttribute.cs
- TabControl.cs
- SecurityTokenValidationException.cs
- CachingHintValidation.cs
- FixedTextView.cs
- HtmlDocument.cs
- cookiecontainer.cs
- SecurityDocument.cs
- Drawing.cs
- TextContainerChangeEventArgs.cs
- WebControl.cs