Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Media / Animation / ResumeStoryboard.cs / 1 / ResumeStoryboard.cs
/****************************************************************************\
*
* File: ResumeStoryboard.cs
*
* This object includes a Storyboard reference. When triggered, the Storyboard
* resumes.
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
using System.Diagnostics; // Debug.Assert
namespace System.Windows.Media.Animation
{
///
/// ResumeStoryboard will call resume on its Storyboard reference when
/// it is triggered.
///
public sealed class ResumeStoryboard : 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.Resume(containingFE);
}
else
{
storyboard.Resume(containingFCE);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\
*
* File: ResumeStoryboard.cs
*
* This object includes a Storyboard reference. When triggered, the Storyboard
* resumes.
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
using System.Diagnostics; // Debug.Assert
namespace System.Windows.Media.Animation
{
///
/// ResumeStoryboard will call resume on its Storyboard reference when
/// it is triggered.
///
public sealed class ResumeStoryboard : 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.Resume(containingFE);
}
else
{
storyboard.Resume(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
- MetaModel.cs
- Label.cs
- UnsafeNativeMethodsCLR.cs
- StructuralObject.cs
- XamlVector3DCollectionSerializer.cs
- WindowsSecurityToken.cs
- DecimalStorage.cs
- TemplateBamlTreeBuilder.cs
- DataBindingsDialog.cs
- UIPropertyMetadata.cs
- WebPartTransformerAttribute.cs
- X509ChainPolicy.cs
- ArithmeticException.cs
- UIPermission.cs
- AssemblyCollection.cs
- FastEncoderWindow.cs
- XmlObjectSerializerWriteContextComplex.cs
- ObjectStateFormatter.cs
- XmlNotation.cs
- ProxyHelper.cs
- MenuCommand.cs
- _ChunkParse.cs
- ByteStack.cs
- DataServiceQuery.cs
- EntityDataSourceMemberPath.cs
- TimelineClockCollection.cs
- XmlHelper.cs
- BasicBrowserDialog.cs
- OpenTypeLayout.cs
- HtmlShim.cs
- LocalizableAttribute.cs
- CssTextWriter.cs
- WindowsListViewGroupSubsetLink.cs
- ToolStripLocationCancelEventArgs.cs
- ChangePassword.cs
- XmlLanguage.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- MouseWheelEventArgs.cs
- CompositeFontParser.cs
- TimelineClockCollection.cs
- ControlIdConverter.cs
- ReferencedCollectionType.cs
- WindowsFormsSectionHandler.cs
- CodeEventReferenceExpression.cs
- OneOfScalarConst.cs
- WebCategoryAttribute.cs
- BasicHttpBindingElement.cs
- GrammarBuilderWildcard.cs
- EllipseGeometry.cs
- BasicDesignerLoader.cs
- DataGridViewRowCollection.cs
- WindowsListViewSubItem.cs
- LocalizabilityAttribute.cs
- ProcessHost.cs
- CellConstantDomain.cs
- StructuredTypeEmitter.cs
- DefaultSection.cs
- WebDisplayNameAttribute.cs
- SQLByteStorage.cs
- WebProxyScriptElement.cs
- SmtpTransport.cs
- VectorCollection.cs
- InputLanguageSource.cs
- RuntimeConfig.cs
- SqlBulkCopyColumnMapping.cs
- StrokeNodeData.cs
- SnapLine.cs
- SqlBulkCopy.cs
- Pen.cs
- ViewValidator.cs
- Link.cs
- AsymmetricKeyExchangeFormatter.cs
- ContentPosition.cs
- OleDbPermission.cs
- RegistrySecurity.cs
- ConditionalAttribute.cs
- DataGridPagerStyle.cs
- MenuAdapter.cs
- NameValueSectionHandler.cs
- AsynchronousChannel.cs
- IProvider.cs
- BindingMemberInfo.cs
- Convert.cs
- xml.cs
- PersistenceProviderFactory.cs
- ObjectKeyFrameCollection.cs
- PropertyCondition.cs
- Mutex.cs
- FontStretch.cs
- MenuItemCollection.cs
- Trace.cs
- TCEAdapterGenerator.cs
- ColorMatrix.cs
- PathFigureCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- safemediahandle.cs
- SimpleApplicationHost.cs
- XmlHierarchicalDataSourceView.cs
- FixedTextBuilder.cs
- ZoneLinkButton.cs