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
- ProviderConnectionPointCollection.cs
- InternalSafeNativeMethods.cs
- MessageLogTraceRecord.cs
- HttpClientCertificate.cs
- ProjectionCamera.cs
- InstanceHandle.cs
- BufferAllocator.cs
- CancellationHandlerDesigner.cs
- AssertUtility.cs
- WindowsGraphicsCacheManager.cs
- ConfigurationPropertyAttribute.cs
- FileSystemInfo.cs
- Point4D.cs
- AnimationStorage.cs
- ObjectView.cs
- ServerIdentity.cs
- RoleManagerSection.cs
- CultureSpecificCharacterBufferRange.cs
- PackWebRequestFactory.cs
- EmbossBitmapEffect.cs
- IsolatedStorageFilePermission.cs
- TileBrush.cs
- SID.cs
- PersonalizationProvider.cs
- NamespaceMapping.cs
- ProxyFragment.cs
- LinkButton.cs
- SqlFacetAttribute.cs
- BindingNavigatorDesigner.cs
- RemoteWebConfigurationHostServer.cs
- ResetableIterator.cs
- followingsibling.cs
- SystemTcpConnection.cs
- CryptoApi.cs
- FormatConvertedBitmap.cs
- Run.cs
- MemoryRecordBuffer.cs
- MarginCollapsingState.cs
- StylusLogic.cs
- InternalRelationshipCollection.cs
- Assert.cs
- SoapProtocolReflector.cs
- NonSerializedAttribute.cs
- UnsafeNativeMethods.cs
- PropertyEmitter.cs
- HtmlToClrEventProxy.cs
- EventHandlerList.cs
- Operator.cs
- TextEditorLists.cs
- DataBoundLiteralControl.cs
- ApplyImportsAction.cs
- MultipartContentParser.cs
- VerificationException.cs
- DirectoryNotFoundException.cs
- InputBuffer.cs
- ResourcesGenerator.cs
- SequenceNumber.cs
- SurrogateSelector.cs
- RecordConverter.cs
- RequestResizeEvent.cs
- DialogWindow.cs
- RefreshResponseInfo.cs
- IgnoreFileBuildProvider.cs
- SystemIcmpV4Statistics.cs
- XmlSchemaCollection.cs
- XmlDigitalSignatureProcessor.cs
- CellLabel.cs
- CompilerScopeManager.cs
- DetailsViewDeleteEventArgs.cs
- ControlCodeDomSerializer.cs
- SafeCryptContextHandle.cs
- TextFindEngine.cs
- XmlSchemaValidator.cs
- loginstatus.cs
- StructuredType.cs
- PrivateFontCollection.cs
- SystemSounds.cs
- SHA512CryptoServiceProvider.cs
- TimeEnumHelper.cs
- TabControlAutomationPeer.cs
- XmlILTrace.cs
- RenderingBiasValidation.cs
- ProviderUtil.cs
- SqlDataSourceSelectingEventArgs.cs
- ObjectToIdCache.cs
- EventRoute.cs
- GridViewSelectEventArgs.cs
- NameSpaceEvent.cs
- StringBlob.cs
- CustomBinding.cs
- ErrorFormatterPage.cs
- GreaterThan.cs
- XAMLParseException.cs
- DocumentPageHost.cs
- COM2FontConverter.cs
- ExpressionBindingCollection.cs
- DataTemplateKey.cs
- SafeArchiveContext.cs
- XmlElementAttribute.cs
- AssemblyNameProxy.cs