Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / RemoveStoryboard.cs / 1305600 / RemoveStoryboard.cs
/****************************************************************************\ * * File: RemoveStoryboard.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 { ////// RemoveStoryboard will call remove on its Storyboard reference when /// it is triggered. /// public sealed class RemoveStoryboard : 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.Remove(containingFE); } else { storyboard.Remove(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: RemoveStoryboard.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 { ////// RemoveStoryboard will call remove on its Storyboard reference when /// it is triggered. /// public sealed class RemoveStoryboard : 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.Remove(containingFE); } else { storyboard.Remove(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
- Authorization.cs
- TranslateTransform.cs
- ToolboxItemImageConverter.cs
- JsonUriDataContract.cs
- CompilerCollection.cs
- DbParameterCollectionHelper.cs
- ExternalException.cs
- JapaneseCalendar.cs
- HttpClientCredentialType.cs
- PackagePartCollection.cs
- InProcStateClientManager.cs
- ToolStripDropDownClosingEventArgs.cs
- InlineObject.cs
- HierarchicalDataBoundControl.cs
- PersonalizationProviderCollection.cs
- AbandonedMutexException.cs
- TemplateBaseAction.cs
- WindowsAuthenticationModule.cs
- GeneralTransform3DGroup.cs
- ObjectPersistData.cs
- ScrollChrome.cs
- EmbeddedMailObjectsCollection.cs
- ArrayList.cs
- RadioButton.cs
- ColumnMap.cs
- ObjectDisposedException.cs
- XPathBinder.cs
- SchemaCollectionPreprocessor.cs
- DragEventArgs.cs
- InvalidAsynchronousStateException.cs
- WebPartManagerInternals.cs
- OdbcParameter.cs
- Canonicalizers.cs
- File.cs
- GridViewEditEventArgs.cs
- HtmlInputReset.cs
- String.cs
- Membership.cs
- HttpRequest.cs
- CopyOnWriteList.cs
- XslUrlEditor.cs
- ListControl.cs
- Size.cs
- CqlWriter.cs
- MetadataItem_Static.cs
- Set.cs
- DebugHandleTracker.cs
- FunctionCommandText.cs
- VisualProxy.cs
- DataGridViewComboBoxCell.cs
- ThrowHelper.cs
- WebPartVerbCollection.cs
- _LoggingObject.cs
- GenericsInstances.cs
- AuthorizationSection.cs
- LineMetrics.cs
- HybridObjectCache.cs
- IsolatedStorageFilePermission.cs
- DeflateEmulationStream.cs
- DataGridViewCellValidatingEventArgs.cs
- Content.cs
- SelectQueryOperator.cs
- LinkedResourceCollection.cs
- ReferencedAssembly.cs
- PrintDialog.cs
- DbConnectionPool.cs
- DataGridViewCellValidatingEventArgs.cs
- XmlIlTypeHelper.cs
- securitycriticaldataformultiplegetandset.cs
- SettingsPropertyCollection.cs
- DataGridBoundColumn.cs
- MediaPlayerState.cs
- PolyBezierSegment.cs
- DataGridViewSelectedRowCollection.cs
- ListMarkerLine.cs
- RowBinding.cs
- DataTablePropertyDescriptor.cs
- LoadedEvent.cs
- SoapFormatter.cs
- TableLayoutPanelCellPosition.cs
- QueryAccessibilityHelpEvent.cs
- XmlCompatibilityReader.cs
- SoapSchemaImporter.cs
- XmlC14NWriter.cs
- WebPartConnection.cs
- OdbcPermission.cs
- ServicePointManager.cs
- CalculatedColumn.cs
- ConfigurationCollectionAttribute.cs
- PageBuildProvider.cs
- UniqueID.cs
- ViewGenResults.cs
- DeviceContexts.cs
- QilIterator.cs
- EntityType.cs
- ConfigurationFileMap.cs
- WindowsListViewGroup.cs
- BCLDebug.cs
- TreeNodeCollectionEditor.cs
- AssociatedControlConverter.cs