Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / PauseStoryboard.cs / 1305600 / 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
- DataGridSortCommandEventArgs.cs
- SmiConnection.cs
- ValidationRule.cs
- ConstructorExpr.cs
- ButtonStandardAdapter.cs
- DataGridAddNewRow.cs
- PersonalizationStateQuery.cs
- CurrencyManager.cs
- TypeElement.cs
- UrlPropertyAttribute.cs
- BasicBrowserDialog.cs
- AxHost.cs
- WebPartVerbCollection.cs
- DropTarget.cs
- LeafCellTreeNode.cs
- XmlBufferReader.cs
- FilteredSchemaElementLookUpTable.cs
- StorageComplexPropertyMapping.cs
- WorkflowOperationBehavior.cs
- DescendantBaseQuery.cs
- CompilationPass2TaskInternal.cs
- HashMembershipCondition.cs
- AutomationEvent.cs
- NotifyCollectionChangedEventArgs.cs
- Transform3D.cs
- CallbackValidatorAttribute.cs
- PointKeyFrameCollection.cs
- InternalMappingException.cs
- XslTransformFileEditor.cs
- GridViewAutomationPeer.cs
- PointF.cs
- _SSPISessionCache.cs
- _NegotiateClient.cs
- InternalCache.cs
- WorkflowInstanceExtensionProvider.cs
- FieldBuilder.cs
- LineServicesCallbacks.cs
- Command.cs
- ChameleonKey.cs
- ConstructorBuilder.cs
- ScrollChangedEventArgs.cs
- PreviewPrintController.cs
- ArraySortHelper.cs
- ScriptingProfileServiceSection.cs
- DataGridViewComponentPropertyGridSite.cs
- AggregatePushdown.cs
- TextRenderingModeValidation.cs
- RuntimeArgumentHandle.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- IERequestCache.cs
- CodeDirectoryCompiler.cs
- BamlBinaryReader.cs
- ProgressBarAutomationPeer.cs
- TemplateNameScope.cs
- StyleReferenceConverter.cs
- PtsPage.cs
- SharedPersonalizationStateInfo.cs
- StringCollectionEditor.cs
- util.cs
- ControlBuilder.cs
- mongolianshape.cs
- IpcChannelHelper.cs
- COM2IProvidePropertyBuilderHandler.cs
- PopupControlService.cs
- NotCondition.cs
- RowToParametersTransformer.cs
- SqlDataReader.cs
- BamlResourceContent.cs
- MemberAccessException.cs
- BehaviorService.cs
- ResourceSet.cs
- SessionStateItemCollection.cs
- CheckoutException.cs
- WebBrowserPermission.cs
- LayoutEngine.cs
- LinkDescriptor.cs
- LogLogRecord.cs
- CodeGroup.cs
- Span.cs
- PenContexts.cs
- EntityException.cs
- _Semaphore.cs
- PageBreakRecord.cs
- ProfessionalColorTable.cs
- CodeMemberMethod.cs
- WebPartMenu.cs
- LogWriteRestartAreaState.cs
- NamespaceDisplayAutomationPeer.cs
- LazyTextWriterCreator.cs
- DataGridViewLinkColumn.cs
- SecurityKeyType.cs
- DataControlLinkButton.cs
- RemoteHelper.cs
- ApplicationTrust.cs
- Material.cs
- AssemblyFilter.cs
- LoadMessageLogger.cs
- RegexBoyerMoore.cs
- UnionExpr.cs
- SQLMembershipProvider.cs