Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Media / Animation / PauseStoryboard.cs / 1 / PauseStoryboard.cs
/****************************************************************************\
*
* File: PauseStoryboard.cs
*
* This object includes a Storyboard reference. When triggered, the Storyboard
* is paused.
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
using System.Diagnostics; // Debug.Assert
namespace System.Windows.Media.Animation
{
///
/// PauseStoryboard will call pause on its Storyboard reference when
/// it is triggered.
///
public sealed class PauseStoryboard : 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.Pause(containingFE);
}
else
{
storyboard.Pause(containingFCE);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\
*
* File: PauseStoryboard.cs
*
* This object includes a Storyboard reference. When triggered, the Storyboard
* is paused.
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
using System.Diagnostics; // Debug.Assert
namespace System.Windows.Media.Animation
{
///
/// PauseStoryboard will call pause on its Storyboard reference when
/// it is triggered.
///
public sealed class PauseStoryboard : 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.Pause(containingFE);
}
else
{
storyboard.Pause(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
- PointValueSerializer.cs
- EncodingNLS.cs
- InputLangChangeRequestEvent.cs
- RecordManager.cs
- HandoffBehavior.cs
- Polyline.cs
- CalendarItem.cs
- WebPartHeaderCloseVerb.cs
- DesignTimeParseData.cs
- BindingContext.cs
- SamlSerializer.cs
- LowerCaseStringConverter.cs
- CngKeyCreationParameters.cs
- DbUpdateCommandTree.cs
- Column.cs
- ObjectAnimationUsingKeyFrames.cs
- RecognizedPhrase.cs
- typedescriptorpermission.cs
- WindowsAltTab.cs
- AuthenticatingEventArgs.cs
- PrePostDescendentsWalker.cs
- QueryCacheKey.cs
- PropertyItem.cs
- XmlSchemaRedefine.cs
- ProxySimple.cs
- NotCondition.cs
- IListConverters.cs
- SHA512.cs
- HtmlToClrEventProxy.cs
- ParseHttpDate.cs
- PropertiesTab.cs
- HttpModuleAction.cs
- LiteralTextContainerControlBuilder.cs
- DataGridAddNewRow.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FileBasedResourceGroveler.cs
- SchemaRegistration.cs
- DefaultAssemblyResolver.cs
- FSWPathEditor.cs
- AccessViolationException.cs
- CorrelationKey.cs
- RSAPKCS1SignatureFormatter.cs
- SqlWebEventProvider.cs
- BasicCellRelation.cs
- CmsInterop.cs
- HtmlTable.cs
- WebPartManager.cs
- Vector3DAnimation.cs
- PropertyRecord.cs
- ControlIdConverter.cs
- IApplicationTrustManager.cs
- UserValidatedEventArgs.cs
- Char.cs
- Timer.cs
- XComponentModel.cs
- DefaultPrintController.cs
- Trace.cs
- SafeEventLogReadHandle.cs
- NativeActivityFaultContext.cs
- storagemappingitemcollection.viewdictionary.cs
- QuaternionAnimationBase.cs
- PropertyGridView.cs
- SerializationInfoEnumerator.cs
- DockProviderWrapper.cs
- ActivityStateRecord.cs
- SettingsPropertyIsReadOnlyException.cs
- CorrelationManager.cs
- IFlowDocumentViewer.cs
- wgx_render.cs
- MetadataWorkspace.cs
- ByteStorage.cs
- ContentPlaceHolder.cs
- AccessDataSource.cs
- WebPartDescription.cs
- HandledMouseEvent.cs
- WindowsFormsSynchronizationContext.cs
- WebPartConnectionsDisconnectVerb.cs
- AnalyzedTree.cs
- XmlSchemaSimpleContentRestriction.cs
- ValidationHelper.cs
- AutomationElementCollection.cs
- CharacterBufferReference.cs
- EncryptedReference.cs
- MergeFilterQuery.cs
- Debug.cs
- ToolboxSnapDragDropEventArgs.cs
- XmlSerializerNamespaces.cs
- SimpleType.cs
- EventKeyword.cs
- IEnumerable.cs
- UICuesEvent.cs
- IChannel.cs
- UriParserTemplates.cs
- PrimitiveSchema.cs
- NativeMethods.cs
- SmiXetterAccessMap.cs
- PageContentCollection.cs
- ButtonPopupAdapter.cs
- SharedPerformanceCounter.cs
- ListViewUpdatedEventArgs.cs