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
- ManualResetEvent.cs
- HebrewNumber.cs
- CultureInfo.cs
- EditingMode.cs
- MouseOverProperty.cs
- BuildTopDownAttribute.cs
- WebBrowserNavigatingEventHandler.cs
- XmlSchemaAttribute.cs
- ProxyWebPartManager.cs
- IfAction.cs
- WebBrowserUriTypeConverter.cs
- DateTimeFormat.cs
- FamilyTypefaceCollection.cs
- CommandID.cs
- TcpServerChannel.cs
- RtfControlWordInfo.cs
- EventSetter.cs
- CompileLiteralTextParser.cs
- SerialErrors.cs
- NestedContainer.cs
- _SSPISessionCache.cs
- PersonalizableTypeEntry.cs
- DropShadowBitmapEffect.cs
- AttachedProperty.cs
- ClrProviderManifest.cs
- IconConverter.cs
- XmlSchemaExporter.cs
- documentsequencetextcontainer.cs
- keycontainerpermission.cs
- XmlUtf8RawTextWriter.cs
- BuildResultCache.cs
- ObjectNavigationPropertyMapping.cs
- RevocationPoint.cs
- CurrencyManager.cs
- DataGridTextBoxColumn.cs
- WebPartZone.cs
- DBDataPermissionAttribute.cs
- Win32SafeHandles.cs
- DbConnectionPoolOptions.cs
- GridViewRow.cs
- TailCallAnalyzer.cs
- XmlSchemaValidationException.cs
- Int64Converter.cs
- X509ThumbprintKeyIdentifierClause.cs
- SettingsPropertyWrongTypeException.cs
- SynchronousReceiveElement.cs
- DocumentViewerBaseAutomationPeer.cs
- ControlPager.cs
- Compiler.cs
- ObjectQuery.cs
- TrackingProfileManager.cs
- Executor.cs
- _NTAuthentication.cs
- VBIdentifierNameEditor.cs
- InkPresenterAutomationPeer.cs
- IListConverters.cs
- DocumentGridContextMenu.cs
- _SecureChannel.cs
- CollectionsUtil.cs
- SettingsContext.cs
- ProxyWebPartConnectionCollection.cs
- ProfileSection.cs
- EventBindingService.cs
- IConvertible.cs
- DataGrid.cs
- Image.cs
- PackagePart.cs
- ViewGenerator.cs
- WmlFormAdapter.cs
- PipelineDeploymentState.cs
- TabPage.cs
- Authorization.cs
- AssertSection.cs
- MenuStrip.cs
- GeneralTransform2DTo3DTo2D.cs
- AutomationElement.cs
- StrokeCollection2.cs
- MessageDecoder.cs
- SRDisplayNameAttribute.cs
- SafeNativeMemoryHandle.cs
- CheckBox.cs
- ComplexBindingPropertiesAttribute.cs
- ConsoleCancelEventArgs.cs
- MetadataCacheItem.cs
- ParameterToken.cs
- EntityProxyTypeInfo.cs
- OdbcConnectionHandle.cs
- HelpProvider.cs
- SequentialWorkflowHeaderFooter.cs
- CodeExpressionCollection.cs
- UInt64Storage.cs
- IOException.cs
- MasterPageBuildProvider.cs
- HtmlTableRow.cs
- GridViewCommandEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- ComboBox.cs
- StrokeIntersection.cs
- InvokeWebService.cs
- ComponentResourceKey.cs