Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Media / Animation / RemoveStoryboard.cs / 1 / 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
- SqlMethodTransformer.cs
- DataObjectFieldAttribute.cs
- IPeerNeighbor.cs
- StateMachineHistory.cs
- CallTemplateAction.cs
- RequiredFieldValidator.cs
- URLBuilder.cs
- FormatConvertedBitmap.cs
- ColumnMapProcessor.cs
- ObsoleteAttribute.cs
- SQLResource.cs
- ImageMapEventArgs.cs
- SizeKeyFrameCollection.cs
- JsonWriterDelegator.cs
- UnionCqlBlock.cs
- Compiler.cs
- SchemaMerger.cs
- FileDataSourceCache.cs
- ReadOnlyDataSource.cs
- DesignerGenericWebPart.cs
- PasswordTextNavigator.cs
- recordstate.cs
- ProcessProtocolHandler.cs
- NativeMethods.cs
- InputLanguageEventArgs.cs
- SafeRegistryHandle.cs
- LookupBindingPropertiesAttribute.cs
- AnnotationComponentManager.cs
- RepeatInfo.cs
- TdsValueSetter.cs
- COM2EnumConverter.cs
- SecureConversationServiceElement.cs
- WebPartAuthorizationEventArgs.cs
- ManagementEventArgs.cs
- Int64Storage.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- X509ImageLogo.cs
- HttpModuleAction.cs
- ExtensionFile.cs
- WindowsPen.cs
- AVElementHelper.cs
- SqlCommandBuilder.cs
- PartialArray.cs
- X509Certificate2Collection.cs
- SamlAction.cs
- CheckableControlBaseAdapter.cs
- QilList.cs
- OleDbPermission.cs
- DelimitedListTraceListener.cs
- PagePropertiesChangingEventArgs.cs
- SqlCommandSet.cs
- TaskHelper.cs
- ProvidersHelper.cs
- SspiSecurityTokenProvider.cs
- Msec.cs
- Control.cs
- DefaultBindingPropertyAttribute.cs
- XhtmlConformanceSection.cs
- ProcessModelInfo.cs
- UnionExpr.cs
- FixedSOMLineCollection.cs
- LocalTransaction.cs
- WSHttpBindingCollectionElement.cs
- SingleAnimation.cs
- EventLogTraceListener.cs
- TargetParameterCountException.cs
- MailSettingsSection.cs
- OutputCacheSettingsSection.cs
- DataGrid.cs
- CustomErrorCollection.cs
- HtmlToClrEventProxy.cs
- DataListItemEventArgs.cs
- OSFeature.cs
- SectionVisual.cs
- _TimerThread.cs
- cookie.cs
- DataGridLinkButton.cs
- Int32Animation.cs
- PolicyLevel.cs
- CodeNamespaceCollection.cs
- RemoteWebConfigurationHostStream.cs
- TransformerInfo.cs
- RecordManager.cs
- CrossSiteScriptingValidation.cs
- AuthenticationServiceManager.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- RichTextBox.cs
- SettingsPropertyNotFoundException.cs
- WindowsFormsHostPropertyMap.cs
- ByteFacetDescriptionElement.cs
- FontNamesConverter.cs
- CryptoConfig.cs
- PropertyEmitterBase.cs
- ZoneButton.cs
- BulletedList.cs
- SchemaCollectionCompiler.cs
- CurrencyWrapper.cs
- EmissiveMaterial.cs
- ToolStripSplitButton.cs
- ReflectionPermission.cs