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
- MethodCallTranslator.cs
- CompositeFontFamily.cs
- TdsParserSessionPool.cs
- SkewTransform.cs
- NegatedConstant.cs
- RequiredAttributeAttribute.cs
- SecUtil.cs
- TypePropertyEditor.cs
- XmlSerializerSection.cs
- MailMessage.cs
- AudioLevelUpdatedEventArgs.cs
- TypeProvider.cs
- ControlDesigner.cs
- SettingsPropertyValue.cs
- BamlRecordHelper.cs
- WeakReferenceList.cs
- SimpleFileLog.cs
- PathSegmentCollection.cs
- ColumnResizeUndoUnit.cs
- DBAsyncResult.cs
- OracleString.cs
- SafeNativeMethods.cs
- TrustManagerMoreInformation.cs
- GAC.cs
- WorkflowServiceHostFactory.cs
- PowerModeChangedEventArgs.cs
- SrgsSemanticInterpretationTag.cs
- RootBrowserWindow.cs
- PostBackTrigger.cs
- BitmapEffectGeneralTransform.cs
- ClientBuildManagerCallback.cs
- XmlTextEncoder.cs
- MarkedHighlightComponent.cs
- IxmlLineInfo.cs
- ToolBarButton.cs
- PixelShader.cs
- SimpleBitVector32.cs
- DataRowView.cs
- DataGridViewTextBoxColumn.cs
- DiscoveryProxy.cs
- TreeIterator.cs
- UserControlBuildProvider.cs
- WebBrowsableAttribute.cs
- HighContrastHelper.cs
- VariantWrapper.cs
- TreeNodeCollection.cs
- DNS.cs
- VariableQuery.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- KeyGesture.cs
- SafeNativeMethods.cs
- XmlSchema.cs
- RuntimeWrappedException.cs
- ISO2022Encoding.cs
- File.cs
- UnauthorizedAccessException.cs
- NotConverter.cs
- WindowsFormsHelpers.cs
- BoundColumn.cs
- AssemblyResolver.cs
- UnmanagedMarshal.cs
- MarkupExtensionParser.cs
- HostingPreferredMapPath.cs
- DelegatingTypeDescriptionProvider.cs
- Query.cs
- IRCollection.cs
- TypeDelegator.cs
- HttpProfileBase.cs
- ButtonFieldBase.cs
- ResXBuildProvider.cs
- AppearanceEditorPart.cs
- SqlServer2KCompatibilityCheck.cs
- RuleSetDialog.Designer.cs
- DetailsViewPageEventArgs.cs
- BamlRecordWriter.cs
- IndentedTextWriter.cs
- AuthenticationModuleElement.cs
- SafeFileMapViewHandle.cs
- FileEnumerator.cs
- CodeBlockBuilder.cs
- SplineKeyFrames.cs
- Grant.cs
- RotateTransform3D.cs
- ActiveXContainer.cs
- SQLGuid.cs
- ObjectStateManagerMetadata.cs
- DetailsViewUpdatedEventArgs.cs
- RadioButtonDesigner.cs
- ResolveMatches11.cs
- DeleteBookmarkScope.cs
- DocumentOrderComparer.cs
- SqlDataSourceEnumerator.cs
- CheckBox.cs
- ControlAdapter.cs
- ReferentialConstraint.cs
- CaseStatement.cs
- ObjectTokenCategory.cs
- DoubleLinkList.cs
- IdnMapping.cs
- ViewSimplifier.cs