Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DomainUpDown.cs
- SocketPermission.cs
- PersonalizationProvider.cs
- ApplicationSettingsBase.cs
- BindStream.cs
- DiscoveryClientDuplexChannel.cs
- Underline.cs
- ScriptModule.cs
- _SafeNetHandles.cs
- ColorPalette.cs
- ReflectEventDescriptor.cs
- InlineCollection.cs
- GenericPrincipal.cs
- FontStyle.cs
- PersonalizationStateInfoCollection.cs
- DataGridViewCellCollection.cs
- TextTreeInsertUndoUnit.cs
- Light.cs
- PermissionSetTriple.cs
- CodeCompiler.cs
- ContainerSelectorGlyph.cs
- DecimalAnimationBase.cs
- WindowsAuthenticationEventArgs.cs
- DesignerAutoFormat.cs
- Message.cs
- FileCodeGroup.cs
- TemplateControlBuildProvider.cs
- TextSerializer.cs
- Viewport3DVisual.cs
- MimeBasePart.cs
- BehaviorService.cs
- InvalidAsynchronousStateException.cs
- X509CertificateCollection.cs
- TimelineClockCollection.cs
- GenericWebPart.cs
- XPathChildIterator.cs
- OdbcInfoMessageEvent.cs
- XmlDocument.cs
- DateTimeOffsetStorage.cs
- CompiledIdentityConstraint.cs
- ToolboxDataAttribute.cs
- DetailsViewDeleteEventArgs.cs
- XmlSchemaSimpleType.cs
- GatewayDefinition.cs
- NameValueConfigurationElement.cs
- CurrentTimeZone.cs
- GenericWebPart.cs
- TemplateControlBuildProvider.cs
- DeobfuscatingStream.cs
- _TimerThread.cs
- XhtmlBasicLiteralTextAdapter.cs
- Types.cs
- RelationshipSet.cs
- ExpandButtonVisibilityConverter.cs
- ArgIterator.cs
- DefaultTextStoreTextComposition.cs
- ProfileService.cs
- SqlReferenceCollection.cs
- TextEmbeddedObject.cs
- SignedXml.cs
- ColorTranslator.cs
- Matrix3D.cs
- ApplicationServiceManager.cs
- KeyTimeConverter.cs
- AutomationPropertyInfo.cs
- HttpRuntime.cs
- PseudoWebRequest.cs
- ResolveMatchesMessageCD1.cs
- FileAuthorizationModule.cs
- storepermissionattribute.cs
- NamespaceTable.cs
- CustomAttributeFormatException.cs
- RectAnimationClockResource.cs
- MethodCallConverter.cs
- TaiwanLunisolarCalendar.cs
- ComponentResourceKey.cs
- CommandConverter.cs
- AjaxFrameworkAssemblyAttribute.cs
- PropertyConverter.cs
- ThemeDictionaryExtension.cs
- Label.cs
- SR.cs
- HttpProfileGroupBase.cs
- Activator.cs
- WindowsTreeView.cs
- OleDbEnumerator.cs
- RadioButtonBaseAdapter.cs
- ExpressionStringBuilder.cs
- BindStream.cs
- EventWaitHandleSecurity.cs
- ArgumentFixer.cs
- InlineUIContainer.cs
- UserControl.cs
- GridViewColumnHeaderAutomationPeer.cs
- EventMappingSettings.cs
- ListItemCollection.cs
- SoapTypeAttribute.cs
- XmlTextWriter.cs
- TextCollapsingProperties.cs
- GraphicsState.cs