Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / SkipStoryboardToFill.cs / 1305600 / SkipStoryboardToFill.cs
/****************************************************************************\
*
* File: SkipStoryboardToFill.cs
*
* This object includes a Storyboard reference. When triggered, the Storyboard
* SkipToFills.
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
using System.Diagnostics; // Debug.Assert
namespace System.Windows.Media.Animation
{
///
/// SkipStoryboardToFill will call SkipToFill on its Storyboard reference when
/// it is triggered.
///
public sealed class SkipStoryboardToFill : 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.SkipToFill(containingFE);
}
else
{
storyboard.SkipToFill(containingFCE);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\
*
* File: SkipStoryboardToFill.cs
*
* This object includes a Storyboard reference. When triggered, the Storyboard
* SkipToFills.
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
using System.Diagnostics; // Debug.Assert
namespace System.Windows.Media.Animation
{
///
/// SkipStoryboardToFill will call SkipToFill on its Storyboard reference when
/// it is triggered.
///
public sealed class SkipStoryboardToFill : 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.SkipToFill(containingFE);
}
else
{
storyboard.SkipToFill(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
- WebResponse.cs
- ButtonPopupAdapter.cs
- CodeAssignStatement.cs
- OleDbReferenceCollection.cs
- SEHException.cs
- Directory.cs
- MetadataItemSerializer.cs
- GenericRootAutomationPeer.cs
- DataGridViewUtilities.cs
- Privilege.cs
- UnsafeNativeMethodsCLR.cs
- RsaSecurityTokenAuthenticator.cs
- ErrorWebPart.cs
- MonikerProxyAttribute.cs
- LicFileLicenseProvider.cs
- ParameterCollection.cs
- AdornerPresentationContext.cs
- MD5HashHelper.cs
- Html32TextWriter.cs
- PrimitiveType.cs
- BaseCodePageEncoding.cs
- PageThemeBuildProvider.cs
- WindowManager.cs
- CursorConverter.cs
- CodeDomConfigurationHandler.cs
- SchemaAttDef.cs
- PeerDuplexChannel.cs
- SplitContainer.cs
- FormViewPageEventArgs.cs
- PageWrapper.cs
- QuaternionKeyFrameCollection.cs
- DriveNotFoundException.cs
- UpdatePanelTriggerCollection.cs
- ProcessManager.cs
- XmlSchemaAttributeGroupRef.cs
- ScrollViewer.cs
- FreezableDefaultValueFactory.cs
- SchemaImporter.cs
- ReadOnlyCollectionBase.cs
- UndoManager.cs
- SoundPlayer.cs
- ProtocolsConfigurationEntry.cs
- XmlRootAttribute.cs
- DataBoundControlAdapter.cs
- ImageCodecInfo.cs
- BinaryNode.cs
- WizardSideBarListControlItem.cs
- HtmlLink.cs
- TypeDescriptor.cs
- LayoutTable.cs
- DataGridViewRowPrePaintEventArgs.cs
- HandlerBase.cs
- MailAddress.cs
- TextParagraphProperties.cs
- SourceChangedEventArgs.cs
- QilTernary.cs
- ObjRef.cs
- CollectionDataContractAttribute.cs
- OneToOneMappingSerializer.cs
- ExceptionAggregator.cs
- HttpAsyncResult.cs
- HttpStreamXmlDictionaryReader.cs
- SingletonChannelAcceptor.cs
- DataGridDesigner.cs
- PaperSource.cs
- WebResourceUtil.cs
- CompareValidator.cs
- WebPartManager.cs
- AppSettingsReader.cs
- dbenumerator.cs
- BaseValidator.cs
- Function.cs
- Vector3DCollectionConverter.cs
- TableLayoutPanelBehavior.cs
- CompareInfo.cs
- SystemIPInterfaceProperties.cs
- Screen.cs
- OperatingSystem.cs
- SqlParameter.cs
- PropertyGridView.cs
- ChangeInterceptorAttribute.cs
- XamlReaderConstants.cs
- Point3DCollectionValueSerializer.cs
- ObjectSet.cs
- DriveInfo.cs
- ConnectionConsumerAttribute.cs
- HatchBrush.cs
- RemotingException.cs
- CollectionBase.cs
- WebPartZoneCollection.cs
- QilPatternFactory.cs
- TargetException.cs
- DebugHandleTracker.cs
- DateTimePicker.cs
- LineSegment.cs
- GridViewCellAutomationPeer.cs
- CommonProperties.cs
- CommandBindingCollection.cs
- XmlMtomReader.cs
- AutoCompleteStringCollection.cs