Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SHA384.cs
- SystemIcmpV4Statistics.cs
- EventLogEntryCollection.cs
- ViewBox.cs
- CacheOutputQuery.cs
- Reference.cs
- FileRecordSequence.cs
- DefaultClaimSet.cs
- CallSite.cs
- WindowsFormsLinkLabel.cs
- ScrollChangedEventArgs.cs
- DataGridAutomationPeer.cs
- Reference.cs
- WebBrowserNavigatingEventHandler.cs
- HttpNamespaceReservationInstallComponent.cs
- pingexception.cs
- _UriTypeConverter.cs
- StreamMarshaler.cs
- ElementAtQueryOperator.cs
- PerfService.cs
- XsdBuildProvider.cs
- SubstitutionList.cs
- ReflectionTypeLoadException.cs
- OperationAbortedException.cs
- HuffCodec.cs
- DataTableMappingCollection.cs
- URLAttribute.cs
- MetadataImporter.cs
- GridViewAutomationPeer.cs
- ExceptionAggregator.cs
- DataTable.cs
- SocketAddress.cs
- PropertyValidationContext.cs
- DurableInstanceProvider.cs
- DnsPermission.cs
- SmtpSection.cs
- ReadWriteObjectLock.cs
- _HeaderInfo.cs
- StreamWithDictionary.cs
- TableLayoutPanelBehavior.cs
- DrawingServices.cs
- LicenseException.cs
- DataKeyCollection.cs
- FormatConvertedBitmap.cs
- DocumentNUp.cs
- BmpBitmapDecoder.cs
- BamlTreeMap.cs
- PopOutPanel.cs
- ProviderException.cs
- LoadMessageLogger.cs
- AnnotationDocumentPaginator.cs
- SchemaTypeEmitter.cs
- StringResourceManager.cs
- StartUpEventArgs.cs
- SweepDirectionValidation.cs
- HtmlImage.cs
- QueuedDeliveryRequirementsMode.cs
- ServiceAuthorizationManager.cs
- RouteItem.cs
- ToolTipAutomationPeer.cs
- SerializationException.cs
- OutputCacheProfileCollection.cs
- TableAutomationPeer.cs
- FileChangesMonitor.cs
- RangeValidator.cs
- OledbConnectionStringbuilder.cs
- DataColumnCollection.cs
- VisualCollection.cs
- MsmqVerifier.cs
- DodSequenceMerge.cs
- SystemGatewayIPAddressInformation.cs
- DecimalAnimationBase.cs
- AbsoluteQuery.cs
- HitTestDrawingContextWalker.cs
- CngProvider.cs
- SingleStorage.cs
- ParameterCollection.cs
- ConfigurationSection.cs
- MemberRelationshipService.cs
- SmtpAuthenticationManager.cs
- DesigntimeLicenseContextSerializer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Blend.cs
- StringUtil.cs
- TaskHelper.cs
- EventSetter.cs
- DragDrop.cs
- ButtonRenderer.cs
- MimeMapping.cs
- DbReferenceCollection.cs
- IsolatedStorage.cs
- InsufficientMemoryException.cs
- ComponentCollection.cs
- ConfigurationProviderException.cs
- RuntimeEnvironment.cs
- AccessText.cs
- XmlReflectionMember.cs
- IndexObject.cs
- WindowsProgressbar.cs
- MouseOverProperty.cs