Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- _NegotiateClient.cs
- RightsManagementEncryptedStream.cs
- SpeechRecognizer.cs
- DtrList.cs
- DatePickerTextBox.cs
- SqlNotificationEventArgs.cs
- QuinticEase.cs
- RemoteWebConfigurationHost.cs
- TextParagraphView.cs
- WSDualHttpSecurity.cs
- HttpResponse.cs
- TdsParameterSetter.cs
- ProxyManager.cs
- HandleRef.cs
- SqlServer2KCompatibilityAnnotation.cs
- XmlObjectSerializerReadContext.cs
- TypeGeneratedEventArgs.cs
- BindingExpressionBase.cs
- XmlHierarchyData.cs
- DomNameTable.cs
- ExpanderAutomationPeer.cs
- _ChunkParse.cs
- XomlCompilerParameters.cs
- EventItfInfo.cs
- DrawingContextWalker.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DependencyPropertyKey.cs
- CustomPeerResolverService.cs
- DisableDpiAwarenessAttribute.cs
- SequenceNumber.cs
- Composition.cs
- NameTable.cs
- DataGridViewToolTip.cs
- DataControlButton.cs
- DataServiceException.cs
- HttpWebRequestElement.cs
- TypeForwardedToAttribute.cs
- ParagraphVisual.cs
- GlyphShapingProperties.cs
- InkPresenterAutomationPeer.cs
- MetafileHeader.cs
- DisplayNameAttribute.cs
- ToolTipAutomationPeer.cs
- ListViewGroupConverter.cs
- RadioButton.cs
- SoapCodeExporter.cs
- StateFinalizationDesigner.cs
- XPathDocument.cs
- IdentityManager.cs
- AttributeData.cs
- DataGridToolTip.cs
- ComponentSerializationService.cs
- XmlAnyElementAttribute.cs
- PrinterResolution.cs
- SystemMulticastIPAddressInformation.cs
- ValidatorCollection.cs
- SmtpCommands.cs
- VariableBinder.cs
- PropertyCondition.cs
- HMACSHA256.cs
- ZoomPercentageConverter.cs
- SessionStateSection.cs
- LayoutDump.cs
- XmlEncoding.cs
- FixedSOMPageElement.cs
- AuthenticationSchemesHelper.cs
- ExceptionRoutedEventArgs.cs
- BooleanToVisibilityConverter.cs
- AppDomainGrammarProxy.cs
- XamlPointCollectionSerializer.cs
- EasingKeyFrames.cs
- TemplateControl.cs
- InputLanguage.cs
- TimeoutException.cs
- CryptoHelper.cs
- TextBounds.cs
- XamlSerializer.cs
- SerializerProvider.cs
- ApplicationInterop.cs
- WeakReferenceEnumerator.cs
- SvcMapFileLoader.cs
- SecurityProtocolCorrelationState.cs
- ProjectionPruner.cs
- FormsIdentity.cs
- BrowserCapabilitiesFactory.cs
- ConfigurationValue.cs
- EncodingInfo.cs
- DbConnectionPoolIdentity.cs
- CodeDomSerializer.cs
- DataControlField.cs
- MD5.cs
- DataGridViewCellStateChangedEventArgs.cs
- ResourceType.cs
- LexicalChunk.cs
- DateTimeFormatInfoScanner.cs
- ToolboxBitmapAttribute.cs
- DesignerOptionService.cs
- TreeChangeInfo.cs
- TraceContext.cs
- SecurityContext.cs