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
- ZoneButton.cs
- XmlKeywords.cs
- DataGridCaption.cs
- HtmlCommandAdapter.cs
- MenuItem.cs
- Vector3D.cs
- PropertyGeneratedEventArgs.cs
- FactoryId.cs
- LinearGradientBrush.cs
- XamlUtilities.cs
- Debugger.cs
- DataGridViewCell.cs
- NextPreviousPagerField.cs
- SchemaObjectWriter.cs
- SplitterPanel.cs
- ResourcePool.cs
- X509SubjectKeyIdentifierClause.cs
- ApplyImportsAction.cs
- OleDbException.cs
- ControlPersister.cs
- SingleAnimation.cs
- SerialPinChanges.cs
- webproxy.cs
- sqlcontext.cs
- GroupBoxAutomationPeer.cs
- SpellerStatusTable.cs
- PeerNameRecord.cs
- UrlRoutingHandler.cs
- LessThan.cs
- Comparer.cs
- TimelineGroup.cs
- QueryExpr.cs
- shaperfactoryquerycacheentry.cs
- PropertyMap.cs
- EntityDataSourceValidationException.cs
- OracleEncoding.cs
- SiteOfOriginContainer.cs
- SimpleFileLog.cs
- DataObjectPastingEventArgs.cs
- MatrixAnimationUsingPath.cs
- ApplyTemplatesAction.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TypeSystem.cs
- InsufficientMemoryException.cs
- PartialTrustHelpers.cs
- FontNamesConverter.cs
- DesignBindingEditor.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Attributes.cs
- Int64AnimationUsingKeyFrames.cs
- HasCopySemanticsAttribute.cs
- EncodingStreamWrapper.cs
- ContractHandle.cs
- FormViewModeEventArgs.cs
- MetadataItemEmitter.cs
- MappingItemCollection.cs
- SplineKeyFrames.cs
- Token.cs
- DataGridColumnReorderingEventArgs.cs
- StackSpiller.cs
- prefixendpointaddressmessagefilter.cs
- ConnectionPointCookie.cs
- GridViewRowEventArgs.cs
- DataSourceControlBuilder.cs
- HostedHttpTransportManager.cs
- MimeAnyImporter.cs
- TypeElement.cs
- SafeRightsManagementQueryHandle.cs
- AutoGeneratedFieldProperties.cs
- MetadataSerializer.cs
- XmlUtf8RawTextWriter.cs
- ResolveCriteria.cs
- ImpersonationContext.cs
- SortKey.cs
- UpDownBase.cs
- TransformConverter.cs
- TcpTransportManager.cs
- NotConverter.cs
- DoubleUtil.cs
- EventData.cs
- DbConnectionStringCommon.cs
- ThreadStateException.cs
- AccessDataSource.cs
- InputScopeAttribute.cs
- ValueChangedEventManager.cs
- mediapermission.cs
- WebPartExportVerb.cs
- CallbackHandler.cs
- ActivityDesignerHelper.cs
- ObjectContext.cs
- DescendantOverDescendantQuery.cs
- ClrProviderManifest.cs
- DetailsViewDeletedEventArgs.cs
- ProxyAttribute.cs
- HtmlInputCheckBox.cs
- SBCSCodePageEncoding.cs
- List.cs
- NameValueConfigurationElement.cs
- Int32RectValueSerializer.cs
- ToolStripScrollButton.cs