Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / ResumeStoryboard.cs / 1305600 / ResumeStoryboard.cs
/****************************************************************************\ * * File: ResumeStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * resumes. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// ResumeStoryboard will call resume on its Storyboard reference when /// it is triggered. /// public sealed class ResumeStoryboard : 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.Resume(containingFE); } else { storyboard.Resume(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ResumeStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * resumes. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// ResumeStoryboard will call resume on its Storyboard reference when /// it is triggered. /// public sealed class ResumeStoryboard : 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.Resume(containingFE); } else { storyboard.Resume(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
- StreamMarshaler.cs
- DynamicDocumentPaginator.cs
- HtmlValidatorAdapter.cs
- EditorPartCollection.cs
- HtmlTableRow.cs
- DataGridPagingPage.cs
- ToolBarTray.cs
- GridErrorDlg.cs
- ItemTypeToolStripMenuItem.cs
- DesigntimeLicenseContext.cs
- SecUtil.cs
- BuildProvider.cs
- ObjectItemCachedAssemblyLoader.cs
- _ConnectionGroup.cs
- WebPartDesigner.cs
- MultipleViewPattern.cs
- IODescriptionAttribute.cs
- DesignBinding.cs
- ZipIOExtraField.cs
- NameNode.cs
- ResourcesChangeInfo.cs
- HuffmanTree.cs
- SqlConnectionStringBuilder.cs
- CursorInteropHelper.cs
- SubclassTypeValidatorAttribute.cs
- RootProfilePropertySettingsCollection.cs
- IndicFontClient.cs
- BmpBitmapEncoder.cs
- ImpersonationContext.cs
- InvalidProgramException.cs
- TransformerTypeCollection.cs
- BindUriHelper.cs
- TraceHandler.cs
- SqlPersonalizationProvider.cs
- BasicExpandProvider.cs
- CodeStatement.cs
- Matrix3DConverter.cs
- InstalledFontCollection.cs
- UInt32.cs
- MailHeaderInfo.cs
- EdmProviderManifest.cs
- TranslateTransform.cs
- MediaTimeline.cs
- MediaElement.cs
- DataGridItem.cs
- InkCollectionBehavior.cs
- PathTooLongException.cs
- TemplateParser.cs
- Timeline.cs
- XPathAncestorQuery.cs
- XmlArrayItemAttributes.cs
- AnnotationAuthorChangedEventArgs.cs
- GuidConverter.cs
- HttpWriter.cs
- DataViewSettingCollection.cs
- PerfCounterSection.cs
- LinqExpressionNormalizer.cs
- RewritingValidator.cs
- CookieParameter.cs
- ReadOnlyObservableCollection.cs
- DesignerTransaction.cs
- DummyDataSource.cs
- AsymmetricKeyExchangeDeformatter.cs
- PlainXmlWriter.cs
- ProfileGroupSettingsCollection.cs
- WebBaseEventKeyComparer.cs
- FSWPathEditor.cs
- SoapReflector.cs
- SqlSelectStatement.cs
- OdbcConnectionStringbuilder.cs
- KeyPullup.cs
- DeliveryRequirementsAttribute.cs
- EntityException.cs
- RenderData.cs
- SafeNativeMethodsCLR.cs
- HeaderCollection.cs
- XmlTextAttribute.cs
- HwndKeyboardInputProvider.cs
- ControlParameter.cs
- FtpWebResponse.cs
- ProgramNode.cs
- DependencyObject.cs
- X509SubjectKeyIdentifierClause.cs
- XmlComplianceUtil.cs
- OperationContractAttribute.cs
- EventLogPropertySelector.cs
- IPAddressCollection.cs
- ConfigXmlDocument.cs
- Tuple.cs
- NumericExpr.cs
- CornerRadius.cs
- XmlRawWriter.cs
- FutureFactory.cs
- WorkflowQueuingService.cs
- __Filters.cs
- SoapSchemaImporter.cs
- ReflectionUtil.cs
- Propagator.cs
- counter.cs
- TransactedBatchingBehavior.cs