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
- DataSvcMapFileSerializer.cs
- AsyncCompletedEventArgs.cs
- SchemaCollectionCompiler.cs
- TrackingProfileSerializer.cs
- XmlObjectSerializerContext.cs
- OLEDB_Util.cs
- XmlUrlResolver.cs
- DataViewSettingCollection.cs
- OdbcConnectionString.cs
- CharacterHit.cs
- BooleanKeyFrameCollection.cs
- ListView.cs
- SqlBulkCopyColumnMapping.cs
- mactripleDES.cs
- Publisher.cs
- ConstraintEnumerator.cs
- DataTableNewRowEvent.cs
- XPathException.cs
- AlgoModule.cs
- versioninfo.cs
- CompilerGeneratedAttribute.cs
- InteropAutomationProvider.cs
- httpapplicationstate.cs
- RsaEndpointIdentity.cs
- ByteViewer.cs
- HMACSHA1.cs
- SafeHandles.cs
- AssociationTypeEmitter.cs
- FixedHighlight.cs
- IfJoinedCondition.cs
- ActiveXContainer.cs
- DayRenderEvent.cs
- ListViewTableCell.cs
- HandlerBase.cs
- RandomDelayQueuedSendsAsyncResult.cs
- TTSEngineProxy.cs
- FormViewModeEventArgs.cs
- SystemFonts.cs
- PropertyMappingExceptionEventArgs.cs
- TextSchema.cs
- PrivilegeNotHeldException.cs
- ThreadInterruptedException.cs
- WorkflowElementDialogWindow.xaml.cs
- RuntimeCompatibilityAttribute.cs
- FontSizeConverter.cs
- BrowserDefinitionCollection.cs
- CompiledXpathExpr.cs
- CSharpCodeProvider.cs
- PopupEventArgs.cs
- TextElementCollection.cs
- ZoneButton.cs
- TextLineResult.cs
- DeclaredTypeValidatorAttribute.cs
- OutputCacheProfileCollection.cs
- ProviderConnectionPoint.cs
- WebBrowser.cs
- TemplatePropertyEntry.cs
- RecommendedAsConfigurableAttribute.cs
- ValidationSummary.cs
- CachedBitmap.cs
- ToolStripSeparatorRenderEventArgs.cs
- UshortList2.cs
- CuspData.cs
- ListViewItem.cs
- Int32CollectionValueSerializer.cs
- InvalidWMPVersionException.cs
- RecognizerStateChangedEventArgs.cs
- wgx_commands.cs
- ServiceDefaults.cs
- TextRangeEditLists.cs
- ClientSideQueueItem.cs
- SessionConnectionReader.cs
- LinkLabel.cs
- RelatedPropertyManager.cs
- Boolean.cs
- UIElement.cs
- StatusBar.cs
- ApplicationServicesHostFactory.cs
- EpmAttributeNameBuilder.cs
- TextEditorContextMenu.cs
- OracleCommandSet.cs
- EndpointInstanceProvider.cs
- AccessorTable.cs
- WebPartConnectionsCloseVerb.cs
- ProxyElement.cs
- InputBinder.cs
- UserControlCodeDomTreeGenerator.cs
- FirstMatchCodeGroup.cs
- PropertyEmitter.cs
- IsolatedStorageFileStream.cs
- KeyValuePair.cs
- MethodBuilderInstantiation.cs
- SettingsContext.cs
- UnauthorizedWebPart.cs
- CounterSampleCalculator.cs
- TimelineCollection.cs
- CompositeActivityValidator.cs
- OracleConnectionFactory.cs
- DataGridPageChangedEventArgs.cs
- IndexedWhereQueryOperator.cs