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
- CommonDialog.cs
- DataFieldEditor.cs
- DispatcherObject.cs
- PropertyDescriptorCollection.cs
- ScriptReference.cs
- SoapHeaderException.cs
- AuthenticationService.cs
- BamlBinaryReader.cs
- StyleCollection.cs
- AutomationPatternInfo.cs
- InputManager.cs
- FillBehavior.cs
- DesignerAutoFormatCollection.cs
- BamlRecordWriter.cs
- XmlSerializationReader.cs
- COM2PropertyDescriptor.cs
- NotifyParentPropertyAttribute.cs
- SqlProfileProvider.cs
- FastEncoder.cs
- UriScheme.cs
- JavascriptCallbackMessageInspector.cs
- PerformanceCounterManager.cs
- MethodBuilderInstantiation.cs
- PrivilegeNotHeldException.cs
- Missing.cs
- BindingValueChangedEventArgs.cs
- SecurityTokenSerializer.cs
- CursorConverter.cs
- DataTrigger.cs
- StringReader.cs
- EntityDataSource.cs
- EventLogConfiguration.cs
- BulletChrome.cs
- OracleConnection.cs
- CompressStream.cs
- AutomationPattern.cs
- HtmlControl.cs
- CurrentTimeZone.cs
- BaseParagraph.cs
- InternalConfigHost.cs
- TextProperties.cs
- GridViewDeleteEventArgs.cs
- AssertSection.cs
- AnnotationService.cs
- XamlParser.cs
- RuntimeHelpers.cs
- Descriptor.cs
- RectKeyFrameCollection.cs
- IdentitySection.cs
- HostedElements.cs
- GZipUtils.cs
- MD5CryptoServiceProvider.cs
- Argument.cs
- StringAnimationBase.cs
- TextEditorTyping.cs
- PeerCollaboration.cs
- SendKeys.cs
- DbParameterCollection.cs
- EventProviderTraceListener.cs
- Range.cs
- LambdaCompiler.Generated.cs
- LinqDataSourceContextData.cs
- StringValueSerializer.cs
- FontWeight.cs
- ObjectStateEntryDbDataRecord.cs
- Identifier.cs
- GroupBoxRenderer.cs
- BamlBinaryWriter.cs
- ResourceSet.cs
- GPRECTF.cs
- HTMLTextWriter.cs
- PackageDigitalSignature.cs
- CompModSwitches.cs
- JsonXmlDataContract.cs
- _HTTPDateParse.cs
- OutputCacheSettings.cs
- StylusPointPropertyInfo.cs
- DeclarativeCatalogPart.cs
- TrustLevelCollection.cs
- DoubleLinkListEnumerator.cs
- WindowHideOrCloseTracker.cs
- ReflectionTypeLoadException.cs
- Publisher.cs
- NativeMethods.cs
- KeyValuePairs.cs
- sqlinternaltransaction.cs
- FileEnumerator.cs
- SecureConversationDriver.cs
- BinaryObjectWriter.cs
- EntityContainerEntitySet.cs
- DescendantOverDescendantQuery.cs
- CommandEventArgs.cs
- _SafeNetHandles.cs
- XmlSerializer.cs
- Point3DValueSerializer.cs
- SQLString.cs
- TypeBuilderInstantiation.cs
- IEnumerable.cs
- XPathNodePointer.cs
- SwitchElementsCollection.cs