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
- LineSegment.cs
- EdgeModeValidation.cs
- Process.cs
- DbConnectionInternal.cs
- WebBrowserContainer.cs
- MemberRelationshipService.cs
- _FtpControlStream.cs
- BooleanExpr.cs
- Selection.cs
- ScrollBarRenderer.cs
- ADMembershipProvider.cs
- invalidudtexception.cs
- BrowserDefinitionCollection.cs
- MatrixAnimationUsingPath.cs
- DbCommandTree.cs
- EntityDataSourceWrapperCollection.cs
- XXXInfos.cs
- TableStyle.cs
- SequenceFullException.cs
- DependentList.cs
- TraceContextRecord.cs
- TcpProcessProtocolHandler.cs
- ColorAnimationUsingKeyFrames.cs
- DataGridViewRowPostPaintEventArgs.cs
- MonthCalendar.cs
- DockPanel.cs
- CheckoutException.cs
- ToolBarButton.cs
- AccessibleObject.cs
- _ContextAwareResult.cs
- SelectionItemProviderWrapper.cs
- FormClosingEvent.cs
- DocumentPaginator.cs
- AssemblyInfo.cs
- InvalidateEvent.cs
- ClientOperationFormatterProvider.cs
- DateTimeFormatInfo.cs
- DelegateBodyWriter.cs
- TargetException.cs
- RouteCollection.cs
- PeekCompletedEventArgs.cs
- ChtmlTextWriter.cs
- CrossContextChannel.cs
- UserMapPath.cs
- PropertyReferenceSerializer.cs
- TextEditorContextMenu.cs
- QilVisitor.cs
- HtmlProps.cs
- DesignSurfaceManager.cs
- KnownBoxes.cs
- SoapWriter.cs
- QueryGenerator.cs
- Grid.cs
- HtmlWindow.cs
- MasterPage.cs
- ListViewEditEventArgs.cs
- EntitySqlQueryBuilder.cs
- DatePickerDateValidationErrorEventArgs.cs
- Model3DGroup.cs
- HostProtectionException.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- Run.cs
- EventSetter.cs
- HierarchicalDataSourceIDConverter.cs
- DataPagerFieldItem.cs
- Parser.cs
- Keywords.cs
- HiddenFieldDesigner.cs
- ServerValidateEventArgs.cs
- GeneralTransform2DTo3D.cs
- ConfigurationSectionGroup.cs
- InputElement.cs
- EnglishPluralizationService.cs
- CompoundFileDeflateTransform.cs
- InputLangChangeEvent.cs
- MarginsConverter.cs
- IPEndPointCollection.cs
- ClipboardProcessor.cs
- HttpRuntime.cs
- MaskInputRejectedEventArgs.cs
- DelegateArgumentValue.cs
- ProxySimple.cs
- DataGridSortingEventArgs.cs
- ScriptingWebServicesSectionGroup.cs
- GiveFeedbackEvent.cs
- DetailsViewModeEventArgs.cs
- XmlNodeReader.cs
- Annotation.cs
- TemplateApplicationHelper.cs
- DateTimeOffsetStorage.cs
- DebugView.cs
- SpecialNameAttribute.cs
- MultiBinding.cs
- SoapExtensionImporter.cs
- OutputCacheModule.cs
- Exceptions.cs
- ServerIdentity.cs
- XmlTextWriter.cs
- OrthographicCamera.cs
- _SpnDictionary.cs