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
- _FtpDataStream.cs
- FileClassifier.cs
- GridEntry.cs
- AuthenticateEventArgs.cs
- ToolTip.cs
- UnionExpr.cs
- WindowsTab.cs
- TemplatePartAttribute.cs
- AnchoredBlock.cs
- RijndaelCryptoServiceProvider.cs
- TemplatedWizardStep.cs
- PropagatorResult.cs
- HtmlInputRadioButton.cs
- CardSpaceException.cs
- SettingsProperty.cs
- StyleBamlTreeBuilder.cs
- DefaultProxySection.cs
- GridProviderWrapper.cs
- hresults.cs
- PartialCachingAttribute.cs
- OleDbStruct.cs
- PseudoWebRequest.cs
- MatrixStack.cs
- ApplicationSettingsBase.cs
- CollectionViewGroup.cs
- ObjectMemberMapping.cs
- XmlSchemaSimpleTypeUnion.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- UpdateCommandGenerator.cs
- XpsFilter.cs
- TemplateEditingFrame.cs
- nulltextnavigator.cs
- BooleanFacetDescriptionElement.cs
- SmiEventStream.cs
- unitconverter.cs
- DataGridViewLayoutData.cs
- StorageMappingItemLoader.cs
- StatusBarDrawItemEvent.cs
- SystemIPv4InterfaceProperties.cs
- VideoDrawing.cs
- DriveInfo.cs
- PropagatorResult.cs
- SchemaCollectionPreprocessor.cs
- CodeTypeOfExpression.cs
- MarginsConverter.cs
- XmlSchemaComplexContent.cs
- PeerNameRecordCollection.cs
- MediaElement.cs
- MLangCodePageEncoding.cs
- TextEffectCollection.cs
- RemoteHelper.cs
- PriorityChain.cs
- LayoutExceptionEventArgs.cs
- CallbackHandler.cs
- embossbitmapeffect.cs
- _LocalDataStoreMgr.cs
- TextControl.cs
- Drawing.cs
- CompositeActivityTypeDescriptor.cs
- ObjectDataSourceView.cs
- PropertyTabChangedEvent.cs
- BufferedGraphicsContext.cs
- RequestCache.cs
- XmlUnspecifiedAttribute.cs
- BypassElementCollection.cs
- XmlNotation.cs
- SafePEFileHandle.cs
- RemotingAttributes.cs
- MouseWheelEventArgs.cs
- ValidatorCompatibilityHelper.cs
- ClockController.cs
- TraceHandlerErrorFormatter.cs
- XmlCustomFormatter.cs
- DiscoveryServiceExtension.cs
- PrivilegeNotHeldException.cs
- InternalConfigHost.cs
- HtmlInputHidden.cs
- LinkedResource.cs
- mediapermission.cs
- CompressedStack.cs
- TemplateInstanceAttribute.cs
- XpsFilter.cs
- ServiceHttpHandlerFactory.cs
- TCPClient.cs
- NullPackagingPolicy.cs
- CodeTypeReference.cs
- GridViewRowCollection.cs
- MatcherBuilder.cs
- PopupEventArgs.cs
- UnsafeNativeMethods.cs
- ValidatingPropertiesEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- GridViewItemAutomationPeer.cs
- HwndStylusInputProvider.cs
- OuterGlowBitmapEffect.cs
- CompilationSection.cs
- ComboBoxAutomationPeer.cs
- PointAnimation.cs
- AttachedAnnotation.cs
- DSACryptoServiceProvider.cs