Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Media / Animation / PauseStoryboard.cs / 1 / 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
- BinaryMessageEncoder.cs
- HandlerBase.cs
- ToolbarAUtomationPeer.cs
- DataSourceCache.cs
- _LocalDataStoreMgr.cs
- TreeWalker.cs
- TileBrush.cs
- BufferAllocator.cs
- ScrollItemPatternIdentifiers.cs
- ResourceProperty.cs
- TextTreeUndoUnit.cs
- TextFragmentEngine.cs
- GcHandle.cs
- CompilerLocalReference.cs
- _IPv6Address.cs
- AutomationTextAttribute.cs
- DragEvent.cs
- UTF7Encoding.cs
- Guid.cs
- DesignTimeVisibleAttribute.cs
- FtpWebRequest.cs
- HtmlEncodedRawTextWriter.cs
- DisableDpiAwarenessAttribute.cs
- TreeNodeBinding.cs
- GcHandle.cs
- SchemaElementDecl.cs
- WebRequestModuleElement.cs
- ParserHooks.cs
- TextElementEditingBehaviorAttribute.cs
- XmlDomTextWriter.cs
- ClientSideQueueItem.cs
- UnsafeNativeMethods.cs
- DefaultPrintController.cs
- _emptywebproxy.cs
- LocalFileSettingsProvider.cs
- httpserverutility.cs
- XPathExpr.cs
- TraceData.cs
- WorkflowLayouts.cs
- XmlMembersMapping.cs
- SafeNativeMethods.cs
- PropertyInformationCollection.cs
- PropertyFilterAttribute.cs
- HtmlTableCell.cs
- MobileControlPersister.cs
- FontUnitConverter.cs
- HttpHeaderCollection.cs
- SqlDataSourceCommandEventArgs.cs
- Quaternion.cs
- WebPartTracker.cs
- UnsafeNativeMethodsPenimc.cs
- SharedDp.cs
- CommandValueSerializer.cs
- ProgressBarAutomationPeer.cs
- CodeNamespace.cs
- SqlClientWrapperSmiStreamChars.cs
- SiteMapNodeCollection.cs
- DirectoryLocalQuery.cs
- VarRefManager.cs
- SerializationUtility.cs
- TabItemWrapperAutomationPeer.cs
- EventsTab.cs
- EventLogPermissionAttribute.cs
- SmiEventSink.cs
- WebScriptMetadataFormatter.cs
- RightsManagementInformation.cs
- xsdvalidator.cs
- AuthenticationModuleElement.cs
- TreeNodeCollection.cs
- GeneralTransform3DGroup.cs
- FamilyMapCollection.cs
- StringInfo.cs
- HttpListenerRequest.cs
- RuleRef.cs
- EntityDataSourceDesignerHelper.cs
- ExpressionParser.cs
- DefaultValueMapping.cs
- XmlResolver.cs
- SingleStorage.cs
- DataServiceOperationContext.cs
- HttpWriter.cs
- AutomationEvent.cs
- RoleService.cs
- RecoverInstanceLocksCommand.cs
- NumericExpr.cs
- Rights.cs
- AutoScrollExpandMessageFilter.cs
- PropertyBuilder.cs
- EndpointNotFoundException.cs
- IndexingContentUnit.cs
- WebPartManager.cs
- XmlEntity.cs
- RowUpdatingEventArgs.cs
- GridViewEditEventArgs.cs
- AtlasWeb.Designer.cs
- UnderstoodHeaders.cs
- WebExceptionStatus.cs
- safelink.cs
- ManagementObjectSearcher.cs
- SqlSupersetValidator.cs