Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / ResumeStoryboard.cs / 1305600 / 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
- RegexMatchCollection.cs
- CompilerError.cs
- DataListItemCollection.cs
- HijriCalendar.cs
- Authorization.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- DefaultWorkflowLoaderService.cs
- Int64Animation.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- NativeMethods.cs
- XmlWriterTraceListener.cs
- SystemEvents.cs
- Metadata.cs
- CommentEmitter.cs
- PropertyConverter.cs
- AnyReturnReader.cs
- WebPartZoneCollection.cs
- FontStyleConverter.cs
- DetailsViewModeEventArgs.cs
- EtwTrackingParticipant.cs
- QilXmlWriter.cs
- MediaTimeline.cs
- WSTransactionSection.cs
- GlyphCollection.cs
- UTF7Encoding.cs
- GeometryCollection.cs
- ApplicationInterop.cs
- ContextStaticAttribute.cs
- RightsManagementInformation.cs
- WorkflowService.cs
- AsymmetricSignatureDeformatter.cs
- MenuItem.cs
- BitmapEffectDrawing.cs
- NamedObject.cs
- CheckBox.cs
- EndPoint.cs
- Command.cs
- NamespaceDecl.cs
- RequiredFieldValidator.cs
- DetailsViewPageEventArgs.cs
- HtmlControlPersistable.cs
- MarshalByRefObject.cs
- MessageBox.cs
- InputLanguage.cs
- EventLogSession.cs
- connectionpool.cs
- FloaterBaseParaClient.cs
- XmlSequenceWriter.cs
- VectorAnimationUsingKeyFrames.cs
- DbProviderManifest.cs
- CounterCreationData.cs
- MenuBindingsEditorForm.cs
- WsdlParser.cs
- GZipStream.cs
- SharedPersonalizationStateInfo.cs
- PeerNameRegistration.cs
- CachedPathData.cs
- ProcessModelSection.cs
- ScriptMethodAttribute.cs
- RoleManagerEventArgs.cs
- Tag.cs
- Label.cs
- SelectedCellsCollection.cs
- ConfigurationManager.cs
- LinqDataSourceHelper.cs
- ClockController.cs
- HttpWriter.cs
- MenuCommand.cs
- XmlHierarchyData.cs
- SingleTagSectionHandler.cs
- UnknownBitmapDecoder.cs
- PickBranchDesigner.xaml.cs
- RectAnimation.cs
- FreezableCollection.cs
- GcSettings.cs
- Point.cs
- TreeChangeInfo.cs
- EventWaitHandleSecurity.cs
- XmlDataSource.cs
- PipelineModuleStepContainer.cs
- WindowsListViewSubItem.cs
- TCEAdapterGenerator.cs
- Divide.cs
- GeometryDrawing.cs
- ManualResetEvent.cs
- MetadataCache.cs
- SourceLineInfo.cs
- DynamicPropertyHolder.cs
- NameScopePropertyAttribute.cs
- _ScatterGatherBuffers.cs
- validationstate.cs
- _SSPISessionCache.cs
- XsdDataContractExporter.cs
- Vector3DCollectionConverter.cs
- XhtmlTextWriter.cs
- SourceFileBuildProvider.cs
- handlecollector.cs
- XmlUtil.cs
- TdsParserSessionPool.cs
- TransformedBitmap.cs