Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlQueryCardinality.cs
- ToolStripDropDownMenu.cs
- CompiledRegexRunner.cs
- GridViewCancelEditEventArgs.cs
- Geometry3D.cs
- WebEventCodes.cs
- MenuCommand.cs
- EraserBehavior.cs
- GuidConverter.cs
- MobileContainerDesigner.cs
- ProcessModelInfo.cs
- DataGridViewImageCell.cs
- LingerOption.cs
- TemplatePartAttribute.cs
- Accessible.cs
- SettingsProviderCollection.cs
- Pkcs7Signer.cs
- ThreadStateException.cs
- RuleSetReference.cs
- ControlBuilder.cs
- AnalyzedTree.cs
- CqlLexerHelpers.cs
- Matrix3DConverter.cs
- WorkflowServiceHostFactory.cs
- PreservationFileReader.cs
- WebServicesInteroperability.cs
- TraceData.cs
- PointLight.cs
- ObjectStateEntryDbDataRecord.cs
- SrgsDocument.cs
- RegexCode.cs
- WebServiceResponse.cs
- LoginStatusDesigner.cs
- __Error.cs
- Activity.cs
- ExtensionQuery.cs
- WebPartsPersonalization.cs
- Rect.cs
- TransformGroup.cs
- CryptoApi.cs
- BCryptHashAlgorithm.cs
- Missing.cs
- PackWebResponse.cs
- LambdaCompiler.Unary.cs
- SqlDataReaderSmi.cs
- DataPagerFieldCollection.cs
- ToolStripGrip.cs
- ReadOnlyDataSource.cs
- SqlBooleanizer.cs
- COM2PropertyDescriptor.cs
- JsonGlobals.cs
- ActivityTypeCodeDomSerializer.cs
- httpapplicationstate.cs
- CompressedStack.cs
- OleDbTransaction.cs
- DesignerHelpers.cs
- RowParagraph.cs
- PasswordTextContainer.cs
- IriParsingElement.cs
- GridView.cs
- EntitySqlQueryCacheEntry.cs
- CardSpaceSelector.cs
- SchemaCollectionPreprocessor.cs
- TextComposition.cs
- ListViewCommandEventArgs.cs
- QueryOptionExpression.cs
- TranslateTransform3D.cs
- SizeAnimationBase.cs
- ProcessInfo.cs
- ParallelRangeManager.cs
- ResourceExpression.cs
- XhtmlBasicFormAdapter.cs
- KerberosTicketHashIdentifierClause.cs
- EntityStoreSchemaFilterEntry.cs
- XamlReader.cs
- CompiledAction.cs
- TextChange.cs
- MimeTypePropertyAttribute.cs
- DbConnectionHelper.cs
- WebPartUserCapability.cs
- HttpWriter.cs
- HTTPNotFoundHandler.cs
- ConnectionStringSettingsCollection.cs
- KeyedCollection.cs
- MetadataArtifactLoader.cs
- NodeFunctions.cs
- NullableIntSumAggregationOperator.cs
- Color.cs
- CreateUserWizardStep.cs
- DemultiplexingClientMessageFormatter.cs
- CodeDelegateCreateExpression.cs
- DecimalAnimation.cs
- BidOverLoads.cs
- BrowserCapabilitiesCompiler.cs
- SQLBytes.cs
- InfoCardSymmetricAlgorithm.cs
- TimelineCollection.cs
- XmlHierarchyData.cs
- ServiceDescriptionSerializer.cs
- MapPathBasedVirtualPathProvider.cs