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
- Tracer.cs
- SecurityPermission.cs
- ParameterModifier.cs
- XamlPathDataSerializer.cs
- ScriptRef.cs
- CodeCompileUnit.cs
- EditingCommands.cs
- UserPersonalizationStateInfo.cs
- NumericPagerField.cs
- SchemaElementLookUpTable.cs
- EncodingNLS.cs
- HotSpotCollection.cs
- CultureInfoConverter.cs
- HttpWebResponse.cs
- DesignerVerbCollection.cs
- ContainerVisual.cs
- Function.cs
- CallbackValidatorAttribute.cs
- VariantWrapper.cs
- ChooseAction.cs
- ConfigXmlComment.cs
- infer.cs
- Speller.cs
- RtfToXamlLexer.cs
- RegistrationContext.cs
- MultilineStringEditor.cs
- ThrowHelper.cs
- DynamicValidatorEventArgs.cs
- SecurityChannelFactory.cs
- ExecutionEngineException.cs
- PointAnimation.cs
- BooleanConverter.cs
- XPathNodePointer.cs
- UshortList2.cs
- XmlAttributeCollection.cs
- GiveFeedbackEventArgs.cs
- ListDictionaryInternal.cs
- MimeAnyImporter.cs
- SliderAutomationPeer.cs
- ClientConfigurationHost.cs
- ComboBoxRenderer.cs
- GacUtil.cs
- Bitmap.cs
- RtfFormatStack.cs
- ArgumentException.cs
- EmbeddedObject.cs
- DataSetViewSchema.cs
- AutomationPropertyInfo.cs
- streamingZipPartStream.cs
- EventHandlersStore.cs
- LocatorGroup.cs
- XmlEventCache.cs
- Point4D.cs
- indexingfiltermarshaler.cs
- ScrollBar.cs
- CodeBinaryOperatorExpression.cs
- FileNotFoundException.cs
- TimeoutTimer.cs
- PenThread.cs
- DependencyPropertyAttribute.cs
- SpeechSynthesizer.cs
- TableLayoutStyle.cs
- XslAstAnalyzer.cs
- DataListItemCollection.cs
- ToolStripOverflow.cs
- MessageQueuePermissionAttribute.cs
- ArgumentException.cs
- SqlProfileProvider.cs
- XmlReflectionMember.cs
- Util.cs
- OleDbConnection.cs
- webclient.cs
- AttributeCollection.cs
- SystemWebCachingSectionGroup.cs
- ScriptResourceHandler.cs
- WebPartCollection.cs
- ChannelCacheSettings.cs
- GrammarBuilder.cs
- Error.cs
- QuaternionRotation3D.cs
- DotExpr.cs
- RadioButton.cs
- Semaphore.cs
- DataIdProcessor.cs
- TypeLibraryHelper.cs
- path.cs
- InputDevice.cs
- ComponentEvent.cs
- SqlOuterApplyReducer.cs
- DefaultAssemblyResolver.cs
- Condition.cs
- SettingsAttributeDictionary.cs
- ToolStripDropDownClosedEventArgs.cs
- ExpressionPrefixAttribute.cs
- ProgressChangedEventArgs.cs
- ProtocolsConfigurationEntry.cs
- SspiHelper.cs
- SoapAttributeOverrides.cs
- MarkupExtensionParser.cs
- CqlLexerHelpers.cs