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
- mactripleDES.cs
- SqlDataReaderSmi.cs
- DataTableReader.cs
- UnsafePeerToPeerMethods.cs
- ChannelCacheDefaults.cs
- FramingEncoders.cs
- RtfControls.cs
- TableRowGroup.cs
- DmlSqlGenerator.cs
- TriggerCollection.cs
- FileClassifier.cs
- RenderContext.cs
- SQLByte.cs
- XmlCountingReader.cs
- WebBrowserBase.cs
- ParameterRefs.cs
- CodeSnippetExpression.cs
- TextFormatter.cs
- Button.cs
- WindowsFont.cs
- NetworkStream.cs
- UICuesEvent.cs
- AnimationTimeline.cs
- CompiledIdentityConstraint.cs
- SqlEnums.cs
- HostingEnvironmentException.cs
- LayoutExceptionEventArgs.cs
- SoapDocumentServiceAttribute.cs
- StylusPointPropertyInfo.cs
- SvcMapFileLoader.cs
- Util.cs
- recordstatefactory.cs
- SqlDataAdapter.cs
- PartialList.cs
- DeferredElementTreeState.cs
- FormViewPageEventArgs.cs
- ReadOnlyTernaryTree.cs
- SqlConnectionPoolGroupProviderInfo.cs
- JsonDeserializer.cs
- ButtonBase.cs
- SHA512Managed.cs
- FormViewDeletedEventArgs.cs
- DecimalKeyFrameCollection.cs
- InvalidProgramException.cs
- XmlMemberMapping.cs
- SerTrace.cs
- WebPartConnection.cs
- PageVisual.cs
- WebReferencesBuildProvider.cs
- RenderTargetBitmap.cs
- COMException.cs
- AssertFilter.cs
- MouseActionConverter.cs
- DrawListViewItemEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TableMethodGenerator.cs
- CacheOutputQuery.cs
- XmlUtf8RawTextWriter.cs
- MediaPlayer.cs
- TypefaceMap.cs
- ListControl.cs
- DataTemplate.cs
- MessagePartDescriptionCollection.cs
- ListBoxItem.cs
- RSACryptoServiceProvider.cs
- TextEffect.cs
- FileSecurity.cs
- XmlNamedNodeMap.cs
- OleStrCAMarshaler.cs
- CompositionAdorner.cs
- DataSourceProvider.cs
- StickyNoteHelper.cs
- SystemFonts.cs
- PointAnimationUsingPath.cs
- TextMessageEncodingElement.cs
- SemanticResultValue.cs
- DBAsyncResult.cs
- TableRowsCollectionEditor.cs
- Conditional.cs
- SecurityElementBase.cs
- SeverityFilter.cs
- Ticks.cs
- NetworkAddressChange.cs
- GatewayIPAddressInformationCollection.cs
- SiteMapDataSource.cs
- FilterException.cs
- ModelItemDictionary.cs
- BuildManager.cs
- MarkupWriter.cs
- ResourcePool.cs
- RoutingUtilities.cs
- QueryStringParameter.cs
- DrawingBrush.cs
- OverflowException.cs
- StrokeCollectionDefaultValueFactory.cs
- Misc.cs
- webeventbuffer.cs
- LinkArea.cs
- WebPartHeaderCloseVerb.cs
- IIS7WorkerRequest.cs