Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Media / Animation / StopStoryboard.cs / 1 / StopStoryboard.cs
/****************************************************************************\ * * File: StopStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * stops. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// StopStoryboard will call stop on its Storyboard reference when /// it is triggered. /// public sealed class StopStoryboard : 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.Stop(containingFE); } else { storyboard.Stop(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: StopStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * stops. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// StopStoryboard will call stop on its Storyboard reference when /// it is triggered. /// public sealed class StopStoryboard : 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.Stop(containingFE); } else { storyboard.Stop(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
- altserialization.cs
- NotifyParentPropertyAttribute.cs
- PageFunction.cs
- FunctionMappingTranslator.cs
- SelectionPattern.cs
- SoapSchemaImporter.cs
- Dynamic.cs
- WebServiceHandler.cs
- PackageFilter.cs
- SQLDateTimeStorage.cs
- SlipBehavior.cs
- RegexTree.cs
- xsdvalidator.cs
- GridItemPatternIdentifiers.cs
- UIntPtr.cs
- ConstNode.cs
- TypeLoadException.cs
- WmlObjectListAdapter.cs
- _CacheStreams.cs
- FactoryGenerator.cs
- smtppermission.cs
- TagPrefixCollection.cs
- ElementNotEnabledException.cs
- AutomationPatternInfo.cs
- HMACSHA384.cs
- EDesignUtil.cs
- SignatureToken.cs
- SequenceDesigner.cs
- FontDialog.cs
- CounterSet.cs
- TraceSection.cs
- FormsAuthenticationEventArgs.cs
- TripleDES.cs
- XmlHierarchicalEnumerable.cs
- _ContextAwareResult.cs
- BitmapEffectState.cs
- ProtocolsSection.cs
- RegexCapture.cs
- LoginCancelEventArgs.cs
- Matrix.cs
- DeferredReference.cs
- GeometryHitTestResult.cs
- DocumentPageViewAutomationPeer.cs
- _ConnectOverlappedAsyncResult.cs
- PropertyEntry.cs
- DataSourceControl.cs
- LinqTreeNodeEvaluator.cs
- TextEmbeddedObject.cs
- NumberFunctions.cs
- DesignerTransaction.cs
- WebResourceUtil.cs
- SerialPort.cs
- HuffmanTree.cs
- InfoCardRSACryptoProvider.cs
- Paragraph.cs
- BaseUriWithWildcard.cs
- MsmqIntegrationBindingCollectionElement.cs
- TcpClientCredentialType.cs
- JournalEntryStack.cs
- ClonableStack.cs
- MessageDecoder.cs
- SystemSounds.cs
- DataBoundControlHelper.cs
- SByteConverter.cs
- DataControlFieldHeaderCell.cs
- ListParagraph.cs
- UrlAuthorizationModule.cs
- RequestTimeoutManager.cs
- CookieParameter.cs
- DesigntimeLicenseContext.cs
- ToolStripSplitStackLayout.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- TypeConverter.cs
- MissingMethodException.cs
- Speller.cs
- ResizeBehavior.cs
- StatusStrip.cs
- ConstantProjectedSlot.cs
- SelectionChangedEventArgs.cs
- ApplicationSecurityInfo.cs
- TextRangeSerialization.cs
- SmiContextFactory.cs
- NameSpaceExtractor.cs
- NameTable.cs
- ScrollableControl.cs
- DataServiceResponse.cs
- ChildChangedEventArgs.cs
- SplashScreen.cs
- ArrayEditor.cs
- IgnoreSection.cs
- Label.cs
- ProtocolImporter.cs
- BinaryCommonClasses.cs
- FaultDescription.cs
- _TLSstream.cs
- ArraySortHelper.cs
- OpenFileDialog.cs
- QueryTaskGroupState.cs
- DataSourceUtil.cs
- Token.cs