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
- MasterPageBuildProvider.cs
- MaterialCollection.cs
- XmlSignatureProperties.cs
- BrowserCapabilitiesCompiler.cs
- SiteIdentityPermission.cs
- safesecurityhelperavalon.cs
- FileCodeGroup.cs
- DataGridViewEditingControlShowingEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- WizardSideBarListControlItem.cs
- DesignerContextDescriptor.cs
- JournalNavigationScope.cs
- HwndSourceParameters.cs
- Throw.cs
- InkSerializer.cs
- DeviceSpecificChoice.cs
- DbConnectionHelper.cs
- PathFigure.cs
- WebBrowser.cs
- LayoutUtils.cs
- WebPartHelpVerb.cs
- LinqExpressionNormalizer.cs
- TargetControlTypeCache.cs
- RuntimeConfig.cs
- DataPagerFieldCommandEventArgs.cs
- DesignerOptionService.cs
- HostedElements.cs
- _DynamicWinsockMethods.cs
- StorageScalarPropertyMapping.cs
- BooleanFacetDescriptionElement.cs
- MemoryRecordBuffer.cs
- HtmlDocument.cs
- SelectionRangeConverter.cs
- DataGridViewImageColumn.cs
- Margins.cs
- FullTrustAssemblyCollection.cs
- WebReferencesBuildProvider.cs
- ValidationEventArgs.cs
- ComponentResourceManager.cs
- TextBoxBaseDesigner.cs
- ProxyHwnd.cs
- webeventbuffer.cs
- LoadedEvent.cs
- PointAnimation.cs
- MaterialCollection.cs
- WebControlAdapter.cs
- SchemaMapping.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlDocumentFragment.cs
- StringInfo.cs
- MenuTracker.cs
- WebRequestModuleElementCollection.cs
- SystemColors.cs
- FamilyTypefaceCollection.cs
- Annotation.cs
- VirtualizedItemProviderWrapper.cs
- ToolStripSplitStackLayout.cs
- XmlSchemaSimpleContent.cs
- StrokeIntersection.cs
- TypeForwardedToAttribute.cs
- EventLogRecord.cs
- InputManager.cs
- Soap.cs
- PropertyEmitterBase.cs
- DiagnosticsConfiguration.cs
- AnnotationComponentManager.cs
- IisTraceWebEventProvider.cs
- PagerSettings.cs
- ColumnMapTranslator.cs
- XsltOutput.cs
- NetworkStream.cs
- IDQuery.cs
- TypeTypeConverter.cs
- RadioButtonRenderer.cs
- NoResizeHandleGlyph.cs
- MarshalByRefObject.cs
- ExpressionBindingCollection.cs
- ActiveXContainer.cs
- CatalogZoneDesigner.cs
- SerializerWriterEventHandlers.cs
- SurrogateEncoder.cs
- Currency.cs
- QilBinary.cs
- InstanceOwnerQueryResult.cs
- Section.cs
- XamlStream.cs
- RuleElement.cs
- FieldNameLookup.cs
- DropShadowBitmapEffect.cs
- OdbcError.cs
- XamlSerializerUtil.cs
- SplayTreeNode.cs
- BrowserDefinition.cs
- WinEventWrap.cs
- ProviderUtil.cs
- StoreAnnotationsMap.cs
- FastEncoder.cs
- FullTextBreakpoint.cs
- ThreadAbortException.cs
- ConvertEvent.cs