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
- SamlAssertionKeyIdentifierClause.cs
- WebEventTraceProvider.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Empty.cs
- EntityCollection.cs
- SQLMoneyStorage.cs
- RealizationContext.cs
- CheckBoxFlatAdapter.cs
- TileModeValidation.cs
- RuntimeHandles.cs
- ArithmeticException.cs
- Menu.cs
- FixedPageProcessor.cs
- DbConnectionPoolCounters.cs
- CommonProperties.cs
- ProtocolProfile.cs
- JsonEnumDataContract.cs
- Image.cs
- ToolStripPanel.cs
- TimerTable.cs
- CatalogPartChrome.cs
- RowParagraph.cs
- SpellerInterop.cs
- InputLanguageEventArgs.cs
- LightweightEntityWrapper.cs
- SafeArrayTypeMismatchException.cs
- ErrorStyle.cs
- SimpleBitVector32.cs
- ControlCollection.cs
- AssociationSetEnd.cs
- DecoderFallbackWithFailureFlag.cs
- QueryResult.cs
- SafePEFileHandle.cs
- WindowsAuthenticationEventArgs.cs
- DeferredBinaryDeserializerExtension.cs
- Ref.cs
- ConfigurationErrorsException.cs
- DataColumnMappingCollection.cs
- XmlCharType.cs
- BuildManager.cs
- WindowsBrush.cs
- PolicyLevel.cs
- AttributedMetaModel.cs
- PrinterSettings.cs
- Missing.cs
- MimeObjectFactory.cs
- DateTimeFormat.cs
- Application.cs
- UIElement3DAutomationPeer.cs
- EventMappingSettings.cs
- KerberosSecurityTokenProvider.cs
- X500Name.cs
- SqlConnection.cs
- SwitchAttribute.cs
- UIPermission.cs
- ButtonBase.cs
- BehaviorEditorPart.cs
- BitmapEffectInput.cs
- ETagAttribute.cs
- DataGridViewAddColumnDialog.cs
- Instrumentation.cs
- DataGridItem.cs
- KeyProperty.cs
- ConstructorNeedsTagAttribute.cs
- ImageAttributes.cs
- EditorBrowsableAttribute.cs
- AccessDataSource.cs
- ApplicationFileParser.cs
- DynamicQueryableWrapper.cs
- SerializationException.cs
- EditorZoneBase.cs
- XPathNodePointer.cs
- HistoryEventArgs.cs
- ExcCanonicalXml.cs
- FixedSOMLineCollection.cs
- OpenTypeCommon.cs
- WrappedKeySecurityTokenParameters.cs
- SystemNetworkInterface.cs
- HttpListenerRequest.cs
- RelationshipManager.cs
- CompilerTypeWithParams.cs
- precedingsibling.cs
- TransformPatternIdentifiers.cs
- TimelineCollection.cs
- PrivilegedConfigurationManager.cs
- WindowsTitleBar.cs
- figurelengthconverter.cs
- VirtualDirectoryMappingCollection.cs
- TextCompositionEventArgs.cs
- WebPartConnectionsConnectVerb.cs
- PageRequestManager.cs
- SHA384Cng.cs
- RepeatButtonAutomationPeer.cs
- ServiceSecurityAuditBehavior.cs
- XPathItem.cs
- AccessDataSourceView.cs
- CustomCredentialPolicy.cs
- MultipleViewProviderWrapper.cs
- FacetDescriptionElement.cs
- WindowsGraphics2.cs