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
- HttpWebRequestElement.cs
- SafeLibraryHandle.cs
- TextDecorationCollectionConverter.cs
- ToolStripButton.cs
- SerializationObjectManager.cs
- ToolStripMenuItemCodeDomSerializer.cs
- RegexCapture.cs
- OrderToken.cs
- DeferredTextReference.cs
- FloaterBaseParaClient.cs
- StandardBindingImporter.cs
- BamlTreeMap.cs
- ControlType.cs
- StateInitialization.cs
- WindowsPen.cs
- Error.cs
- CallbackValidatorAttribute.cs
- PropertyToken.cs
- BitmapEffect.cs
- Button.cs
- Decorator.cs
- TableRow.cs
- DocumentXmlWriter.cs
- OleCmdHelper.cs
- propertytag.cs
- CounterSample.cs
- SecurityTokenRequirement.cs
- SerialStream.cs
- ListViewInsertionMark.cs
- Padding.cs
- WebPartExportVerb.cs
- WaitForChangedResult.cs
- Mappings.cs
- AncillaryOps.cs
- XmlQueryType.cs
- EventLogPropertySelector.cs
- SerTrace.cs
- ControlPropertyNameConverter.cs
- EntitySqlQueryCacheKey.cs
- X509AsymmetricSecurityKey.cs
- VariableQuery.cs
- IxmlLineInfo.cs
- DefaultAsyncDataDispatcher.cs
- __ConsoleStream.cs
- MasterPageBuildProvider.cs
- PersonalizationStateInfoCollection.cs
- ByteStorage.cs
- TextDpi.cs
- filewebresponse.cs
- EmbeddedObject.cs
- BitmapSourceSafeMILHandle.cs
- SqlMethods.cs
- IUnknownConstantAttribute.cs
- _FixedSizeReader.cs
- FrameworkPropertyMetadata.cs
- _SSPISessionCache.cs
- ApplicationHost.cs
- HtmlForm.cs
- CroppedBitmap.cs
- WebEventCodes.cs
- ApplicationSecurityManager.cs
- RenderDataDrawingContext.cs
- TypeFieldSchema.cs
- MimeParameters.cs
- CheckBoxAutomationPeer.cs
- cookie.cs
- InternalsVisibleToAttribute.cs
- ExceptionHandlersDesigner.cs
- XamlTemplateSerializer.cs
- DbConnectionPoolOptions.cs
- CodeIterationStatement.cs
- Win32Exception.cs
- ParameterModifier.cs
- ConfigurationStrings.cs
- DirectionalLight.cs
- ValuePattern.cs
- IPipelineRuntime.cs
- TypeListConverter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Screen.cs
- StringAnimationUsingKeyFrames.cs
- DataGridColumnCollection.cs
- HybridObjectCache.cs
- AddInController.cs
- TraceLevelStore.cs
- PolyLineSegmentFigureLogic.cs
- VirtualizingStackPanel.cs
- SqlMethodCallConverter.cs
- CultureInfo.cs
- HttpRequestBase.cs
- CatalogPartChrome.cs
- ResXResourceSet.cs
- Solver.cs
- ViewCellSlot.cs
- SingleAnimationBase.cs
- EdmValidator.cs
- UserPreferenceChangingEventArgs.cs
- ListItemCollection.cs
- TypedTableBase.cs
- InfoCardRSAPKCS1SignatureFormatter.cs