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
- OdbcConnectionStringbuilder.cs
- FrameworkTemplate.cs
- DataGridComboBoxColumn.cs
- StringUtil.cs
- Rotation3D.cs
- HandlerBase.cs
- ToolStripControlHost.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ErrorHandlerModule.cs
- figurelengthconverter.cs
- FunctionDetailsReader.cs
- MultipleViewProviderWrapper.cs
- NativeActivityContext.cs
- InertiaTranslationBehavior.cs
- Color.cs
- Matrix3D.cs
- PropertyPushdownHelper.cs
- dataobject.cs
- DesignerHost.cs
- TabPage.cs
- CallbackValidatorAttribute.cs
- TemplateNameScope.cs
- _LocalDataStore.cs
- QuaternionAnimationUsingKeyFrames.cs
- EventMemberCodeDomSerializer.cs
- ObjectHandle.cs
- ClrPerspective.cs
- WhitespaceReader.cs
- BasicAsyncResult.cs
- ThreadPoolTaskScheduler.cs
- XPathChildIterator.cs
- ComboBoxDesigner.cs
- EventDescriptorCollection.cs
- UrlPath.cs
- VarRefManager.cs
- SafePEFileHandle.cs
- PerformanceCounter.cs
- Container.cs
- NaturalLanguageHyphenator.cs
- UpdateCommand.cs
- MetadataUtilsSmi.cs
- EntitySqlQueryState.cs
- ListViewItemSelectionChangedEvent.cs
- BufferedGraphics.cs
- TemplateApplicationHelper.cs
- UIAgentInitializationException.cs
- TreeNodeCollectionEditor.cs
- FormatterConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- CommonObjectSecurity.cs
- LocalValueEnumerator.cs
- ApplicationId.cs
- XsltQilFactory.cs
- RichTextBoxConstants.cs
- TrackingStringDictionary.cs
- DecoderReplacementFallback.cs
- XpsFontSubsetter.cs
- EntityDataSourceUtil.cs
- SqlUnionizer.cs
- ListViewDataItem.cs
- PointValueSerializer.cs
- ImpersonationContext.cs
- Utilities.cs
- ClientBuildManager.cs
- __ComObject.cs
- LostFocusEventManager.cs
- WebControlAdapter.cs
- ArithmeticLiteral.cs
- CharacterMetrics.cs
- GridViewRowPresenterBase.cs
- SystemFonts.cs
- WebPartsPersonalizationAuthorization.cs
- BitFlagsGenerator.cs
- NamespaceDecl.cs
- ClientUrlResolverWrapper.cs
- Listbox.cs
- DataRowView.cs
- SrgsToken.cs
- MouseButton.cs
- RecommendedAsConfigurableAttribute.cs
- HScrollProperties.cs
- HideDisabledControlAdapter.cs
- DragSelectionMessageFilter.cs
- ConnectionPoint.cs
- RawUIStateInputReport.cs
- WebServiceReceive.cs
- ToolStripItemImageRenderEventArgs.cs
- EntityRecordInfo.cs
- SetterBase.cs
- UriScheme.cs
- ColorConvertedBitmapExtension.cs
- MergePropertyDescriptor.cs
- PresentationSource.cs
- SelectedDatesCollection.cs
- SystemThemeKey.cs
- UIElementAutomationPeer.cs
- UriSectionData.cs
- WebPermission.cs
- XpsFontSerializationService.cs
- Context.cs