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
- CryptographicAttribute.cs
- Endpoint.cs
- CodeGeneratorOptions.cs
- WorkflowWebHostingModule.cs
- XmlSiteMapProvider.cs
- AssemblyBuilderData.cs
- DebugView.cs
- DoubleLink.cs
- PropertyPath.cs
- IListConverters.cs
- DataSetMappper.cs
- PersonalizationStateInfoCollection.cs
- MetafileHeaderWmf.cs
- DocumentPageTextView.cs
- SystemUdpStatistics.cs
- ResourcePart.cs
- Adorner.cs
- EntityProviderServices.cs
- FileClassifier.cs
- AttachedPropertyInfo.cs
- MinimizableAttributeTypeConverter.cs
- TileModeValidation.cs
- FlowSwitch.cs
- Collection.cs
- SymDocumentType.cs
- TimeSpanSecondsConverter.cs
- XmlIgnoreAttribute.cs
- TrailingSpaceComparer.cs
- InfocardChannelParameter.cs
- ImportCatalogPart.cs
- HtmlImage.cs
- BinaryMethodMessage.cs
- EntityContainerEntitySetDefiningQuery.cs
- PreviewControlDesigner.cs
- QilFunction.cs
- SemanticResultKey.cs
- InternalConfigConfigurationFactory.cs
- UnsafeNativeMethodsCLR.cs
- ColorConverter.cs
- RequestTimeoutManager.cs
- EntityCodeGenerator.cs
- MissingMethodException.cs
- ManifestSignedXml.cs
- XmlStreamStore.cs
- HttpResponse.cs
- HitTestWithPointDrawingContextWalker.cs
- DeviceContexts.cs
- BamlBinaryReader.cs
- ListSortDescription.cs
- WarningException.cs
- InputGestureCollection.cs
- DataTableMapping.cs
- FileEnumerator.cs
- CalendarKeyboardHelper.cs
- Vector3DCollectionConverter.cs
- wgx_commands.cs
- SamlAssertion.cs
- PathGradientBrush.cs
- GridViewHeaderRowPresenter.cs
- StyleXamlParser.cs
- XsdBuildProvider.cs
- TemplateXamlTreeBuilder.cs
- ApplicationManager.cs
- ZoneLinkButton.cs
- QualifiedCellIdBoolean.cs
- SspiSecurityTokenProvider.cs
- RawStylusInput.cs
- AdornerPresentationContext.cs
- AssemblyHash.cs
- RegionIterator.cs
- InputReport.cs
- DataGridViewBindingCompleteEventArgs.cs
- WebPartVerbCollection.cs
- DataListItemCollection.cs
- UnmanagedMarshal.cs
- ColumnHeader.cs
- SafeWaitHandle.cs
- BypassElement.cs
- _SafeNetHandles.cs
- DesignerDataColumn.cs
- GroupBoxAutomationPeer.cs
- OutputBuffer.cs
- WebHostedComPlusServiceHost.cs
- ConfigXmlCDataSection.cs
- Parameter.cs
- SchemaConstraints.cs
- LoginNameDesigner.cs
- PointAnimationClockResource.cs
- PeerEndPoint.cs
- ImagingCache.cs
- WebPartAddingEventArgs.cs
- TrustExchangeException.cs
- DragDrop.cs
- Empty.cs
- SubclassTypeValidatorAttribute.cs
- FormatStringEditor.cs
- WebSysDefaultValueAttribute.cs
- SpellerStatusTable.cs
- EntityDataSourceState.cs
- CoTaskMemHandle.cs