Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / PauseStoryboard.cs / 1305600 / PauseStoryboard.cs
/****************************************************************************\ * * File: PauseStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * is paused. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// PauseStoryboard will call pause on its Storyboard reference when /// it is triggered. /// public sealed class PauseStoryboard : ControllableStoryboardAction { ////// 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.Pause(containingFE); } else { storyboard.Pause(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: PauseStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * is paused. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// PauseStoryboard will call pause on its Storyboard reference when /// it is triggered. /// public sealed class PauseStoryboard : ControllableStoryboardAction { ////// 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.Pause(containingFE); } else { storyboard.Pause(containingFCE); } } } } // 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
- TransformerInfo.cs
- PathFigureCollection.cs
- SystemBrushes.cs
- ListBoxDesigner.cs
- TextEditorSelection.cs
- _NativeSSPI.cs
- XmlProcessingInstruction.cs
- CompensationHandlingFilter.cs
- CatalogPartChrome.cs
- SettingsPropertyIsReadOnlyException.cs
- DefaultSerializationProviderAttribute.cs
- OleStrCAMarshaler.cs
- QuaternionConverter.cs
- GrammarBuilderPhrase.cs
- PersonalizationProviderHelper.cs
- LeaseManager.cs
- PropertyDescriptorCollection.cs
- VariableDesigner.xaml.cs
- Vector3D.cs
- XmlJsonWriter.cs
- SimpleWorkerRequest.cs
- SHA384Managed.cs
- RSAPKCS1SignatureDeformatter.cs
- DataViewManager.cs
- LocatorManager.cs
- VirtualPath.cs
- GridViewDesigner.cs
- BasicExpandProvider.cs
- XmlBaseReader.cs
- Storyboard.cs
- ImageProxy.cs
- XamlSerializerUtil.cs
- COMException.cs
- PolicyStatement.cs
- MenuCommandService.cs
- FlowDocumentPaginator.cs
- Section.cs
- ClientRequest.cs
- Rectangle.cs
- BamlRecords.cs
- WsdlBuildProvider.cs
- ObjectNavigationPropertyMapping.cs
- CodeNamespace.cs
- TemplateControlParser.cs
- CodeArrayCreateExpression.cs
- MetadataItemEmitter.cs
- KeyMatchBuilder.cs
- selecteditemcollection.cs
- AdornerLayer.cs
- XmlSchemaFacet.cs
- OdbcDataReader.cs
- PeekCompletedEventArgs.cs
- MiniConstructorInfo.cs
- CriticalFinalizerObject.cs
- HtmlInputHidden.cs
- ButtonBase.cs
- TabPageDesigner.cs
- _NegotiateClient.cs
- COM2IProvidePropertyBuilderHandler.cs
- IdentifierElement.cs
- IPEndPointCollection.cs
- XmlDsigSep2000.cs
- SecurityToken.cs
- SqlCacheDependencyDatabaseCollection.cs
- UrlParameterReader.cs
- IntegerFacetDescriptionElement.cs
- Label.cs
- AmbientLight.cs
- SendOperation.cs
- MSAAWinEventWrap.cs
- CodeAttributeArgument.cs
- IconConverter.cs
- PathParser.cs
- GlobalizationSection.cs
- AVElementHelper.cs
- SqlTransaction.cs
- LoginUtil.cs
- WorkflowRuntimeService.cs
- ResourceContainer.cs
- StringPropertyBuilder.cs
- EndpointFilterProvider.cs
- SystemParameters.cs
- ScaleTransform3D.cs
- Normalizer.cs
- ContentType.cs
- securitycriticaldataformultiplegetandset.cs
- ToolStripItemRenderEventArgs.cs
- RedirectionProxy.cs
- LicenseContext.cs
- ErrorRuntimeConfig.cs
- HybridDictionary.cs
- DescendantBaseQuery.cs
- PlanCompilerUtil.cs
- PlatformCulture.cs
- ProxyWebPartConnectionCollection.cs
- System.Data_BID.cs
- SizeKeyFrameCollection.cs
- ResourcePool.cs
- Synchronization.cs
- TextContainerChangedEventArgs.cs