Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ImagingCache.cs
- Pair.cs
- Span.cs
- IntranetCredentialPolicy.cs
- MatrixKeyFrameCollection.cs
- ServiceOperationWrapper.cs
- ViewGenResults.cs
- MappingException.cs
- StorageMappingItemLoader.cs
- FillErrorEventArgs.cs
- SessionStateModule.cs
- FixedSOMContainer.cs
- ViewgenContext.cs
- QuadraticBezierSegment.cs
- Parser.cs
- BuildDependencySet.cs
- FullTextState.cs
- RefreshEventArgs.cs
- DesignerActionItem.cs
- GeometryGroup.cs
- FrameworkPropertyMetadata.cs
- GraphicsPathIterator.cs
- DbConnectionPool.cs
- Panel.cs
- ControlCachePolicy.cs
- TemplateField.cs
- ResourceDisplayNameAttribute.cs
- LoginStatusDesigner.cs
- DrawTreeNodeEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- ToolStripOverflow.cs
- SqlDelegatedTransaction.cs
- MachineKeyValidationConverter.cs
- VSWCFServiceContractGenerator.cs
- WinHttpWebProxyFinder.cs
- DataGridViewRowHeaderCell.cs
- __FastResourceComparer.cs
- Rfc2898DeriveBytes.cs
- Ray3DHitTestResult.cs
- MarkupProperty.cs
- IxmlLineInfo.cs
- PresentationTraceSources.cs
- ChangeBlockUndoRecord.cs
- ViewLoader.cs
- MemberCollection.cs
- MatrixStack.cs
- ShaderRenderModeValidation.cs
- SiteMapNodeItemEventArgs.cs
- DataRowView.cs
- WinInetCache.cs
- CatalogZoneDesigner.cs
- MethodCallTranslator.cs
- ObjectViewFactory.cs
- RowUpdatingEventArgs.cs
- ComponentTray.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DirtyTextRange.cs
- WindowExtensionMethods.cs
- XamlStackWriter.cs
- GeometryGroup.cs
- CodeStatement.cs
- TextTreeUndo.cs
- TextLineBreak.cs
- DiagnosticsConfiguration.cs
- HtmlElementCollection.cs
- ConnectorSelectionGlyph.cs
- SortDescriptionCollection.cs
- PropertyInformation.cs
- MouseOverProperty.cs
- HeaderedItemsControl.cs
- DivideByZeroException.cs
- PolicyLevel.cs
- InstancePersistenceCommandException.cs
- BaseTransportHeaders.cs
- Accessible.cs
- HttpHandlersInstallComponent.cs
- InstanceContextManager.cs
- EmptyQuery.cs
- FunctionParameter.cs
- DataSet.cs
- SerializerWriterEventHandlers.cs
- TerminatorSinks.cs
- PassportAuthenticationModule.cs
- SqlCacheDependencySection.cs
- ListViewPagedDataSource.cs
- Floater.cs
- RepeatButton.cs
- RelatedEnd.cs
- DataGridColumnCollection.cs
- DecoderExceptionFallback.cs
- Attributes.cs
- Stroke2.cs
- PageBreakRecord.cs
- DriveNotFoundException.cs
- RSAPKCS1SignatureDeformatter.cs
- SoapServerMethod.cs
- CodeTypeMemberCollection.cs
- DesignerView.xaml.cs
- TraceRecords.cs
- XmlLangPropertyAttribute.cs