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
- EntityDataSourceSelectedEventArgs.cs
- Canvas.cs
- DPTypeDescriptorContext.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlSchemaSubstitutionGroup.cs
- FormViewUpdatedEventArgs.cs
- DocumentScope.cs
- ComplexLine.cs
- filewebresponse.cs
- Resources.Designer.cs
- contentDescriptor.cs
- HtmlTableCellCollection.cs
- RegisteredScript.cs
- SchemaMapping.cs
- XmlWriterSettings.cs
- RequestCacheValidator.cs
- PropertyOverridesDialog.cs
- InvokeBinder.cs
- DecimalAnimationUsingKeyFrames.cs
- LayoutTable.cs
- SeverityFilter.cs
- GlobalProxySelection.cs
- MappingException.cs
- SqlClientWrapperSmiStream.cs
- WizardDesigner.cs
- ConfigurationManagerInternal.cs
- ProcessInfo.cs
- ClientData.cs
- CheckBoxDesigner.cs
- Rules.cs
- DragCompletedEventArgs.cs
- JsonByteArrayDataContract.cs
- TransformFinalBlockRequest.cs
- FlagsAttribute.cs
- MappingModelBuildProvider.cs
- HyperLinkStyle.cs
- EntityDataSourceState.cs
- RegexReplacement.cs
- webproxy.cs
- Random.cs
- HitTestWithPointDrawingContextWalker.cs
- TextContainerChangeEventArgs.cs
- _ShellExpression.cs
- ContourSegment.cs
- CustomValidator.cs
- BasicHttpBindingElement.cs
- IndexingContentUnit.cs
- XslAstAnalyzer.cs
- WsiProfilesElementCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- CriticalExceptions.cs
- TextContainerChangedEventArgs.cs
- SystemBrushes.cs
- KeyFrames.cs
- DataPagerCommandEventArgs.cs
- ProtocolsConfigurationHandler.cs
- MessageSmuggler.cs
- Bezier.cs
- DragDrop.cs
- TreeViewAutomationPeer.cs
- FixedSOMTableCell.cs
- XhtmlBasicValidatorAdapter.cs
- ToolStripManager.cs
- GlyphTypeface.cs
- CellParagraph.cs
- TransformerConfigurationWizardBase.cs
- CompilationLock.cs
- OdbcDataAdapter.cs
- LicenseContext.cs
- FilteredReadOnlyMetadataCollection.cs
- SourceLineInfo.cs
- CompositeDataBoundControl.cs
- _ListenerAsyncResult.cs
- AudioFormatConverter.cs
- HitTestFilterBehavior.cs
- SecurityTokenValidationException.cs
- ScrollEvent.cs
- SecurityRuntime.cs
- SvcFileManager.cs
- CodeArrayIndexerExpression.cs
- WorkflowViewElement.cs
- SiteMapNodeItemEventArgs.cs
- RichListBox.cs
- Compilation.cs
- PerformanceCounterPermissionEntry.cs
- COM2Enum.cs
- SmtpException.cs
- DataBindingExpressionBuilder.cs
- AnnotationObservableCollection.cs
- DataView.cs
- SoapInteropTypes.cs
- LoadWorkflowByInstanceKeyCommand.cs
- ThreadExceptionDialog.cs
- AppDomainGrammarProxy.cs
- Point3DAnimation.cs
- DescendentsWalker.cs
- RequestCachePolicy.cs
- listitem.cs
- QilParameter.cs
- AspCompat.cs