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
- DynamicObjectAccessor.cs
- EncryptedReference.cs
- PersonalizationDictionary.cs
- MobileContainerDesigner.cs
- securitycriticaldataClass.cs
- CookieProtection.cs
- SamlAuthorizationDecisionStatement.cs
- EventWaitHandle.cs
- NamespaceMapping.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlDocumentFragment.cs
- Transform3D.cs
- safePerfProviderHandle.cs
- FullTextBreakpoint.cs
- TableCell.cs
- ToggleButton.cs
- X509ChainPolicy.cs
- BitVector32.cs
- OleDbInfoMessageEvent.cs
- PropertyGrid.cs
- TextEditorThreadLocalStore.cs
- NeutralResourcesLanguageAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- HtmlInputControl.cs
- MsmqReceiveHelper.cs
- HtmlHistory.cs
- RequestStatusBarUpdateEventArgs.cs
- ListItemCollection.cs
- PropertyIdentifier.cs
- SmtpNegotiateAuthenticationModule.cs
- DesignerHelpers.cs
- ExceptionUtility.cs
- CodeExpressionStatement.cs
- ThreadStateException.cs
- OracleDataReader.cs
- ChtmlMobileTextWriter.cs
- PeerContact.cs
- PolyQuadraticBezierSegment.cs
- Int64Converter.cs
- ActivityValidationServices.cs
- DataGridViewCellFormattingEventArgs.cs
- StyleXamlTreeBuilder.cs
- EntityTypeBase.cs
- NavigationService.cs
- XmlSchemaSimpleTypeList.cs
- TypeToken.cs
- HtmlForm.cs
- SimpleWorkerRequest.cs
- ExceptionUtil.cs
- StrokeNodeData.cs
- DispatcherObject.cs
- PopupRoot.cs
- LifetimeServices.cs
- MetadataHelper.cs
- DataBindingExpressionBuilder.cs
- NodeLabelEditEvent.cs
- TraceListener.cs
- OpenTypeLayoutCache.cs
- AspProxy.cs
- OleDbParameterCollection.cs
- UpdatePanel.cs
- Viewport3DAutomationPeer.cs
- CodeGen.cs
- SqlClientPermission.cs
- XamlWrappingReader.cs
- WindowsToolbarItemAsMenuItem.cs
- _UncName.cs
- SchemaNotation.cs
- PositiveTimeSpanValidator.cs
- XLinq.cs
- WasEndpointConfigContainer.cs
- ParameterToken.cs
- NamespaceInfo.cs
- AsymmetricKeyExchangeDeformatter.cs
- InternalDispatchObject.cs
- WebPartEditorOkVerb.cs
- EDesignUtil.cs
- GridViewColumnHeader.cs
- TextServicesPropertyRanges.cs
- LinqDataSourceHelper.cs
- BoundField.cs
- XamlWriter.cs
- ValidatorCollection.cs
- CriticalHandle.cs
- FtpCachePolicyElement.cs
- WebBrowserNavigatedEventHandler.cs
- Size3DValueSerializer.cs
- SoapAttributeAttribute.cs
- LayoutTable.cs
- IPipelineRuntime.cs
- HtmlEmptyTagControlBuilder.cs
- DataGridViewAdvancedBorderStyle.cs
- GetIndexBinder.cs
- ProcessThread.cs
- JsonServiceDocumentSerializer.cs
- MethodBuilder.cs
- TemplatingOptionsDialog.cs
- OrderingInfo.cs
- PeerApplication.cs
- recordstate.cs