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
- LinkButton.cs
- ProxyAssemblyNotLoadedException.cs
- CultureTable.cs
- XmlSchemaCompilationSettings.cs
- HtmlEncodedRawTextWriter.cs
- FtpWebRequest.cs
- SqlBulkCopy.cs
- MSHTMLHost.cs
- UInt64Converter.cs
- GeneralTransform3DTo2DTo3D.cs
- RowUpdatedEventArgs.cs
- StatusCommandUI.cs
- HtmlGenericControl.cs
- SafeArrayRankMismatchException.cs
- WindowsSlider.cs
- Base64Encoder.cs
- BulletedListEventArgs.cs
- EdmFunctions.cs
- ClientRuntimeConfig.cs
- DetailsViewPagerRow.cs
- XsdSchemaFileEditor.cs
- MediaTimeline.cs
- ToolStripDropDownItem.cs
- Content.cs
- UniformGrid.cs
- UInt16Converter.cs
- CompressionTracing.cs
- FacetDescriptionElement.cs
- SafeBitVector32.cs
- CryptographicAttribute.cs
- CryptoApi.cs
- DrawingContextDrawingContextWalker.cs
- CodeNamespaceCollection.cs
- EntityContainerEmitter.cs
- RTLAwareMessageBox.cs
- DBSchemaTable.cs
- ProgramPublisher.cs
- PageStatePersister.cs
- SpeechUI.cs
- SyndicationCategory.cs
- DataGridViewSelectedCellCollection.cs
- AtlasWeb.Designer.cs
- TextSpan.cs
- Point4DConverter.cs
- ShellProvider.cs
- DragSelectionMessageFilter.cs
- sqlstateclientmanager.cs
- FormsAuthenticationConfiguration.cs
- dbenumerator.cs
- InvalidEnumArgumentException.cs
- SimpleApplicationHost.cs
- PublishLicense.cs
- DropShadowEffect.cs
- XamlHostingSection.cs
- AuthenticationManager.cs
- IncrementalCompileAnalyzer.cs
- LookupNode.cs
- Pointer.cs
- Stream.cs
- ImageKeyConverter.cs
- DataBindingsDialog.cs
- DBConnectionString.cs
- ColumnBinding.cs
- RequiredAttributeAttribute.cs
- TextPattern.cs
- BitmapEffectDrawing.cs
- EventArgs.cs
- LineServicesCallbacks.cs
- EnglishPluralizationService.cs
- ThemeableAttribute.cs
- WorkflowRuntimeEndpoint.cs
- TrackingMemoryStream.cs
- XmlStringTable.cs
- AssemblyResolver.cs
- FontNamesConverter.cs
- ObjectItemNoOpAssemblyLoader.cs
- HttpCookieCollection.cs
- Line.cs
- IdnElement.cs
- EmptyQuery.cs
- SqlTypeSystemProvider.cs
- EndOfStreamException.cs
- SoapIgnoreAttribute.cs
- SspiHelper.cs
- ApplicationManager.cs
- AdapterDictionary.cs
- TypeSource.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LazyTextWriterCreator.cs
- DataKey.cs
- HtmlForm.cs
- CellParagraph.cs
- TextReader.cs
- TcpClientCredentialType.cs
- SafeNativeMethods.cs
- StringWriter.cs
- HttpHandlerActionCollection.cs
- PassportAuthenticationEventArgs.cs
- ObjectStateManager.cs
- HttpAsyncResult.cs