Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridViewCellStateChangedEventArgs.cs
- CapabilitiesAssignment.cs
- BaseResourcesBuildProvider.cs
- PermissionSetEnumerator.cs
- FontFaceLayoutInfo.cs
- ChtmlSelectionListAdapter.cs
- PerspectiveCamera.cs
- SimpleWorkerRequest.cs
- jithelpers.cs
- CatalogPartCollection.cs
- DataControlFieldHeaderCell.cs
- Splitter.cs
- SignedXml.cs
- ToolStripPanelRenderEventArgs.cs
- OutputCacheSettings.cs
- EditingCoordinator.cs
- MarkupCompilePass1.cs
- ButtonChrome.cs
- PerformanceCounterLib.cs
- SymmetricAlgorithm.cs
- LayoutSettings.cs
- xmlfixedPageInfo.cs
- NativeCompoundFileAPIs.cs
- BoundingRectTracker.cs
- AsyncPostBackTrigger.cs
- EventMappingSettingsCollection.cs
- EdmRelationshipRoleAttribute.cs
- CachedFontFace.cs
- RichTextBoxDesigner.cs
- PropertyItemInternal.cs
- WindowsFormsHost.cs
- HtmlHead.cs
- ToolStrip.cs
- OptimizedTemplateContent.cs
- LinearGradientBrush.cs
- ReturnValue.cs
- DataRowCollection.cs
- WebPartDisplayMode.cs
- DataPagerFieldCollection.cs
- QueryExpr.cs
- UIElementHelper.cs
- PagesChangedEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- ComponentDispatcherThread.cs
- ThemeDictionaryExtension.cs
- XmlSchemaInclude.cs
- RegionIterator.cs
- Native.cs
- ContentFilePart.cs
- DocumentDesigner.cs
- ZoneLinkButton.cs
- GPRECTF.cs
- XPathMultyIterator.cs
- OleDbError.cs
- FontStretches.cs
- SoapFault.cs
- CachedFontFace.cs
- DelegatingTypeDescriptionProvider.cs
- Inflater.cs
- Int32AnimationUsingKeyFrames.cs
- FilterEventArgs.cs
- ExpressionNode.cs
- ProviderUtil.cs
- webbrowsersite.cs
- Constraint.cs
- ClickablePoint.cs
- Italic.cs
- EntityDataSourceQueryBuilder.cs
- TimeSpanMinutesConverter.cs
- SerTrace.cs
- StateInitializationDesigner.cs
- SyndicationDeserializer.cs
- ModelUIElement3D.cs
- ValueExpressions.cs
- URI.cs
- VerticalAlignConverter.cs
- ToolboxDataAttribute.cs
- RemotingConfiguration.cs
- CommandHelper.cs
- ServiceOperationUIEditor.cs
- ThreadStartException.cs
- FontResourceCache.cs
- MailAddressCollection.cs
- ContextMenuService.cs
- CodeArrayCreateExpression.cs
- ApplicationException.cs
- ComponentGlyph.cs
- InstanceLockLostException.cs
- RoleService.cs
- UnmanagedMemoryAccessor.cs
- RadioButtonList.cs
- CultureInfoConverter.cs
- ConfigurationSectionGroupCollection.cs
- RequestCachingSection.cs
- Item.cs
- MaterializeFromAtom.cs
- ProfileService.cs
- ProcessInfo.cs
- SpellCheck.cs
- TableCellCollection.cs