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
- RayMeshGeometry3DHitTestResult.cs
- TokenBasedSetEnumerator.cs
- WindowsGraphicsCacheManager.cs
- LogWriteRestartAreaState.cs
- Predicate.cs
- SpellerHighlightLayer.cs
- SQLStringStorage.cs
- XmlObjectSerializer.cs
- MSHTMLHostUtil.cs
- DesignTimeXamlWriter.cs
- FieldNameLookup.cs
- Adorner.cs
- FastEncoderStatics.cs
- XmlILStorageConverter.cs
- AuthenticationConfig.cs
- NavigationProperty.cs
- RequestStatusBarUpdateEventArgs.cs
- CursorConverter.cs
- ComPlusInstanceProvider.cs
- DataGridViewColumnConverter.cs
- OneToOneMappingSerializer.cs
- DependencyProperty.cs
- StateItem.cs
- DelimitedListTraceListener.cs
- LinkUtilities.cs
- QueryOutputWriterV1.cs
- SafeArrayRankMismatchException.cs
- LocalFileSettingsProvider.cs
- LinqDataSourceInsertEventArgs.cs
- QueryCacheKey.cs
- WindowsButton.cs
- NameObjectCollectionBase.cs
- MetaType.cs
- BlobPersonalizationState.cs
- MarginCollapsingState.cs
- StringResourceManager.cs
- FullTextBreakpoint.cs
- RequestSecurityToken.cs
- ProviderSettings.cs
- DataSourceControl.cs
- PasswordTextNavigator.cs
- SurrogateEncoder.cs
- HtmlElementErrorEventArgs.cs
- DataGridRowEventArgs.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DateTimeOffset.cs
- ExecutionEngineException.cs
- TriggerAction.cs
- ResourceExpressionBuilder.cs
- DataKey.cs
- CachedFontFace.cs
- ComponentResourceKey.cs
- SeekableReadStream.cs
- ProfileEventArgs.cs
- ActivityTrace.cs
- FactoryId.cs
- Completion.cs
- AlgoModule.cs
- QilIterator.cs
- SerialErrors.cs
- SpeakProgressEventArgs.cs
- WebPartVerb.cs
- PersonalizationProviderCollection.cs
- LoginNameDesigner.cs
- EmissiveMaterial.cs
- InheritanceAttribute.cs
- IPAddress.cs
- COM2Properties.cs
- XmlSchemaAnyAttribute.cs
- SHA1CryptoServiceProvider.cs
- SrgsElement.cs
- ExpandSegmentCollection.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- ControlCollection.cs
- ElementAction.cs
- InputLanguageProfileNotifySink.cs
- PagesSection.cs
- EntityProviderFactory.cs
- MessageBox.cs
- ObjectQueryProvider.cs
- ConfigurationManager.cs
- ArraySet.cs
- PtsContext.cs
- TextTreeTextNode.cs
- XmlChoiceIdentifierAttribute.cs
- LinkedList.cs
- BitVector32.cs
- MediaTimeline.cs
- AmbientValueAttribute.cs
- NumberSubstitution.cs
- OdbcErrorCollection.cs
- PeerEndPoint.cs
- DBBindings.cs
- OutputCacheSection.cs
- RuntimeIdentifierPropertyAttribute.cs
- WhereaboutsReader.cs
- SystemColors.cs
- ObjectManager.cs
- OdbcStatementHandle.cs
- Stream.cs