Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / ResumeStoryboard.cs / 1305600 / ResumeStoryboard.cs
/****************************************************************************\ * * File: ResumeStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * resumes. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// ResumeStoryboard will call resume on its Storyboard reference when /// it is triggered. /// public sealed class ResumeStoryboard : 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.Resume(containingFE); } else { storyboard.Resume(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ResumeStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * resumes. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// ResumeStoryboard will call resume on its Storyboard reference when /// it is triggered. /// public sealed class ResumeStoryboard : 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.Resume(containingFE); } else { storyboard.Resume(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
- TagPrefixCollection.cs
- WebPartTransformer.cs
- DispatcherHooks.cs
- Image.cs
- SortKey.cs
- DocumentXPathNavigator.cs
- xsdvalidator.cs
- UserControlParser.cs
- DataTableNewRowEvent.cs
- connectionpool.cs
- MethodBody.cs
- ServiceMetadataExtension.cs
- HttpListenerRequest.cs
- DataGridViewRowCollection.cs
- InputScopeManager.cs
- ConnectionInterfaceCollection.cs
- JournalEntryListConverter.cs
- ADRoleFactory.cs
- NotSupportedException.cs
- GenericPrincipal.cs
- WebResourceUtil.cs
- Encoder.cs
- BaseInfoTable.cs
- UnsafeNativeMethods.cs
- RawKeyboardInputReport.cs
- EntityDataSourceChangingEventArgs.cs
- FormsAuthenticationUser.cs
- EnumValAlphaComparer.cs
- DPAPIProtectedConfigurationProvider.cs
- DispatchChannelSink.cs
- CompilerScopeManager.cs
- _Events.cs
- WebPartConnectionsConfigureVerb.cs
- DynamicRenderer.cs
- SettingsSection.cs
- RangeContentEnumerator.cs
- ConfigurationManagerHelper.cs
- DateTimeStorage.cs
- DataFormats.cs
- TranslateTransform.cs
- FileLevelControlBuilderAttribute.cs
- SHA384Managed.cs
- PrivateFontCollection.cs
- SatelliteContractVersionAttribute.cs
- CharKeyFrameCollection.cs
- ScriptResourceInfo.cs
- ShortcutKeysEditor.cs
- MultitargetUtil.cs
- QualifierSet.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- PeerName.cs
- PackageProperties.cs
- TokenCreationException.cs
- EffectiveValueEntry.cs
- ScriptingSectionGroup.cs
- DirtyTextRange.cs
- Soap.cs
- EdgeProfileValidation.cs
- ServiceAuthorizationElement.cs
- ValuePattern.cs
- PrintingPermissionAttribute.cs
- UsernameTokenFactoryCredential.cs
- XslAst.cs
- TextFormatterImp.cs
- TraceSection.cs
- DataGridViewCellCancelEventArgs.cs
- MessageFilterTable.cs
- SafeProcessHandle.cs
- DLinqColumnProvider.cs
- NoneExcludedImageIndexConverter.cs
- Scene3D.cs
- VirtualPathProvider.cs
- AssociationEndMember.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- DateBoldEvent.cs
- FlowLayoutPanel.cs
- HtmlWindowCollection.cs
- NetCodeGroup.cs
- RuleInfoComparer.cs
- MethodBody.cs
- XmlSchemaObjectTable.cs
- StorageAssociationTypeMapping.cs
- FontFamilyValueSerializer.cs
- TextTreeRootTextBlock.cs
- OletxEnlistment.cs
- DBConnection.cs
- MaskInputRejectedEventArgs.cs
- HitTestResult.cs
- BufferedOutputStream.cs
- WinEventHandler.cs
- ActiveDocumentEvent.cs
- TextSearch.cs
- ListViewSelectEventArgs.cs
- DataTableClearEvent.cs
- DefaultConfirmation.cs
- HttpServerUtilityWrapper.cs
- FactoryMaker.cs
- SqlFormatter.cs
- CompiledRegexRunnerFactory.cs
- Bidi.cs