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 / 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
- TreeChangeInfo.cs
- NonNullItemCollection.cs
- Int32Converter.cs
- DeadCharTextComposition.cs
- MailWriter.cs
- ClientSponsor.cs
- HttpHostedTransportConfiguration.cs
- WinCategoryAttribute.cs
- PrincipalPermissionMode.cs
- PagePropertiesChangingEventArgs.cs
- Logging.cs
- SqlDataAdapter.cs
- IgnoreFileBuildProvider.cs
- ClientTargetSection.cs
- DateTimeParse.cs
- DataBoundControl.cs
- DbParameterHelper.cs
- Rect.cs
- SqlInternalConnection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- UpWmlMobileTextWriter.cs
- WindowsListViewSubItem.cs
- DeploymentSectionCache.cs
- unitconverter.cs
- EntityClassGenerator.cs
- CleanUpVirtualizedItemEventArgs.cs
- MailAddressCollection.cs
- WindowsToolbarAsMenu.cs
- TemplateComponentConnector.cs
- WaitForChangedResult.cs
- RadioButtonStandardAdapter.cs
- GridItemProviderWrapper.cs
- dtdvalidator.cs
- WebPartEditorOkVerb.cs
- SubstitutionList.cs
- SafeRightsManagementSessionHandle.cs
- MessageDecoder.cs
- x509store.cs
- DiagnosticSection.cs
- ResourceDisplayNameAttribute.cs
- Int32.cs
- WindowHelperService.cs
- DictionaryManager.cs
- LayoutSettings.cs
- FtpWebRequest.cs
- XmlDictionaryString.cs
- MsmqBindingFilter.cs
- OdbcError.cs
- QilExpression.cs
- HtmlUtf8RawTextWriter.cs
- PropertyManager.cs
- StateMachineHelpers.cs
- TableStyle.cs
- CommandHelpers.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataServiceException.cs
- ListDictionary.cs
- PropertySourceInfo.cs
- AddIn.cs
- InlineUIContainer.cs
- PropertyInformation.cs
- FixedPageAutomationPeer.cs
- ExtensibleClassFactory.cs
- PersianCalendar.cs
- IxmlLineInfo.cs
- ThreadExceptionEvent.cs
- DirectoryGroupQuery.cs
- GlobalizationSection.cs
- WorkflowDurableInstance.cs
- TableAdapterManagerMethodGenerator.cs
- StatusBar.cs
- MimeFormatter.cs
- QueryAsyncResult.cs
- DesignerSerializerAttribute.cs
- WindowsListView.cs
- ExternalFile.cs
- UnsafeNativeMethodsCLR.cs
- Line.cs
- DebugController.cs
- EntityContainer.cs
- BitmapEffectDrawingContent.cs
- CancelEventArgs.cs
- WebPartTracker.cs
- SimpleTextLine.cs
- SizeKeyFrameCollection.cs
- GroupStyle.cs
- SecureConversationServiceCredential.cs
- StrongName.cs
- DataGridViewLinkColumn.cs
- EnumMember.cs
- EntityClientCacheKey.cs
- SpecularMaterial.cs
- FontResourceCache.cs
- ProjectionPruner.cs
- ReadOnlyTernaryTree.cs
- Int32KeyFrameCollection.cs
- SecureStringHasher.cs
- UnsafeNativeMethods.cs
- DataGridItemCollection.cs
- EndpointBehaviorElementCollection.cs