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
- DataBoundControlAdapter.cs
- CollectionBase.cs
- StyleConverter.cs
- MDIWindowDialog.cs
- IdnElement.cs
- IndexOutOfRangeException.cs
- DoubleStorage.cs
- ClonableStack.cs
- Rect3D.cs
- LicenseContext.cs
- ModelItemDictionary.cs
- BufferBuilder.cs
- ReceiveSecurityHeaderElementManager.cs
- HttpCapabilitiesBase.cs
- CodeAttributeArgument.cs
- UserControl.cs
- ObjectQueryProvider.cs
- ToolStripSeparator.cs
- BindingValueChangedEventArgs.cs
- EntityAdapter.cs
- BaseTreeIterator.cs
- XPathParser.cs
- FlowNode.cs
- ComPlusAuthorization.cs
- FixedElement.cs
- OleDbError.cs
- MD5.cs
- FontNamesConverter.cs
- ScrollItemPatternIdentifiers.cs
- XmlSchemaComplexContent.cs
- FileIOPermission.cs
- codemethodreferenceexpression.cs
- JavaScriptObjectDeserializer.cs
- Calendar.cs
- ModifiableIteratorCollection.cs
- RenderOptions.cs
- COM2ExtendedBrowsingHandler.cs
- EntityDataSourceEntitySetNameItem.cs
- UserControlParser.cs
- XmlAttributeCollection.cs
- SimpleBitVector32.cs
- BitmapPalettes.cs
- _ConnectionGroup.cs
- NotCondition.cs
- DataBindingCollection.cs
- CommandField.cs
- ApplicationBuildProvider.cs
- Int64.cs
- ActivityContext.cs
- Light.cs
- SystemKeyConverter.cs
- MouseWheelEventArgs.cs
- StyleCollection.cs
- Utils.cs
- SchemaCollectionPreprocessor.cs
- DecoderReplacementFallback.cs
- MissingMemberException.cs
- EntityContainerAssociationSetEnd.cs
- BulletedListEventArgs.cs
- QueryableFilterUserControl.cs
- StackBuilderSink.cs
- VerificationAttribute.cs
- NoneExcludedImageIndexConverter.cs
- RuleAttributes.cs
- TagMapCollection.cs
- StructuralType.cs
- Ticks.cs
- XhtmlTextWriter.cs
- CompositeFontFamily.cs
- GenericsInstances.cs
- CryptoApi.cs
- RadioButton.cs
- ExternalFile.cs
- BitmapSourceSafeMILHandle.cs
- NoClickablePointException.cs
- _ListenerAsyncResult.cs
- GridViewRowEventArgs.cs
- Part.cs
- SchemaComplexType.cs
- TypeConverterHelper.cs
- OperationAbortedException.cs
- PrintControllerWithStatusDialog.cs
- StructuredProperty.cs
- DispatchWrapper.cs
- DetailsViewPageEventArgs.cs
- UnsettableComboBox.cs
- Debug.cs
- ChangeConflicts.cs
- TransformConverter.cs
- ListControlStringCollectionEditor.cs
- FilterableAttribute.cs
- PasswordDeriveBytes.cs
- ToolStripMenuItem.cs
- ResourceType.cs
- ChangePassword.cs
- UserControlDesigner.cs
- ValueUnavailableException.cs
- ArraySet.cs
- LinqDataSourceSelectEventArgs.cs
- MobileControlsSection.cs