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 / ResumeStoryboard.cs / 1 / 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
- ElementMarkupObject.cs
- QuaternionValueSerializer.cs
- ImageDrawing.cs
- HostedHttpRequestAsyncResult.cs
- DataGridViewRowCollection.cs
- EventLogPermission.cs
- WebPartHelpVerb.cs
- ExtenderProvidedPropertyAttribute.cs
- DelegatedStream.cs
- complextypematerializer.cs
- ReferentialConstraint.cs
- WindowsMenu.cs
- FormViewPagerRow.cs
- DebugView.cs
- SapiAttributeParser.cs
- SafeNativeMethods.cs
- UnsafeNativeMethods.cs
- SingleObjectCollection.cs
- ItemType.cs
- AnnotationResource.cs
- ZipIOFileItemStream.cs
- SQLRoleProvider.cs
- WindowsImpersonationContext.cs
- ColumnResult.cs
- XmlAtomicValue.cs
- Calendar.cs
- Util.cs
- ScriptManagerProxy.cs
- TreeViewAutomationPeer.cs
- SmiRequestExecutor.cs
- DbSetClause.cs
- WebContext.cs
- XmlTextReader.cs
- RoleGroup.cs
- DesignParameter.cs
- EnvironmentPermission.cs
- CodeGenerator.cs
- LoadWorkflowByKeyAsyncResult.cs
- ErrorFormatter.cs
- StatusBarAutomationPeer.cs
- XmlEnumAttribute.cs
- TableCell.cs
- ObjectSet.cs
- Int64AnimationUsingKeyFrames.cs
- cryptoapiTransform.cs
- PolygonHotSpot.cs
- MimeBasePart.cs
- CheckBoxBaseAdapter.cs
- XmlSchemaSimpleType.cs
- FormatException.cs
- CachedResourceDictionaryExtension.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- XPathNodePointer.cs
- DataGridItemCollection.cs
- AdornerHitTestResult.cs
- FileLoadException.cs
- ConvertEvent.cs
- GridViewDeleteEventArgs.cs
- ControlCodeDomSerializer.cs
- DynamicMethod.cs
- CompiledQueryCacheKey.cs
- FixedSOMSemanticBox.cs
- FormViewUpdatedEventArgs.cs
- XmlSerializerVersionAttribute.cs
- RemoteCryptoDecryptRequest.cs
- SynchronizationFilter.cs
- DefaultExpression.cs
- WebPartConnectionsConnectVerb.cs
- ObjectListCommand.cs
- ListenerElementsCollection.cs
- SchemaImporterExtensionsSection.cs
- BamlVersionHeader.cs
- DataPager.cs
- KeySplineConverter.cs
- TerminatorSinks.cs
- PerspectiveCamera.cs
- PreviewPrintController.cs
- Mutex.cs
- UInt32.cs
- TextFormatterHost.cs
- LinkUtilities.cs
- KnownIds.cs
- TypeElement.cs
- HttpPostedFile.cs
- Condition.cs
- ZipIOLocalFileBlock.cs
- DataGridTableStyleMappingNameEditor.cs
- TrackingProfileSerializer.cs
- BooleanSwitch.cs
- BoolExpressionVisitors.cs
- ViewgenGatekeeper.cs
- TraceContextRecord.cs
- ClosableStream.cs
- EventTrigger.cs
- ObjectSpanRewriter.cs
- TextViewSelectionProcessor.cs
- SqlRewriteScalarSubqueries.cs
- SmtpAuthenticationManager.cs
- TextProviderWrapper.cs
- AddressAccessDeniedException.cs