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
- DataViewSettingCollection.cs
- WindowsFormsSynchronizationContext.cs
- SplitContainer.cs
- QilIterator.cs
- MediaContextNotificationWindow.cs
- BufferModesCollection.cs
- AsyncResult.cs
- EventlogProvider.cs
- SqlDataSourceView.cs
- RuntimeArgumentHandle.cs
- SiteMapPathDesigner.cs
- PrivilegedConfigurationManager.cs
- DefaultValueMapping.cs
- LinkArea.cs
- Calendar.cs
- DesignerTextBoxAdapter.cs
- Guid.cs
- _ShellExpression.cs
- TempFiles.cs
- OdbcReferenceCollection.cs
- AuthorizationRuleCollection.cs
- DataGridViewBand.cs
- DependentTransaction.cs
- Stream.cs
- SelectorAutomationPeer.cs
- XmlChildEnumerator.cs
- TemplatedWizardStep.cs
- PointAnimation.cs
- NativeMethods.cs
- ControlLocalizer.cs
- PageParserFilter.cs
- X509ClientCertificateAuthentication.cs
- DataColumnMapping.cs
- Size3DConverter.cs
- CookielessHelper.cs
- InputMethod.cs
- BaseCAMarshaler.cs
- listitem.cs
- CommandHelpers.cs
- PriorityItem.cs
- ClientRoleProvider.cs
- LinkedList.cs
- EventDescriptorCollection.cs
- PersistNameAttribute.cs
- ScriptingJsonSerializationSection.cs
- followingquery.cs
- ClientTargetCollection.cs
- HttpAsyncResult.cs
- DesignerInterfaces.cs
- SqlLiftWhereClauses.cs
- VectorCollectionValueSerializer.cs
- XmlTextEncoder.cs
- MimeObjectFactory.cs
- PerformanceCounter.cs
- SevenBitStream.cs
- UnsafeNativeMethods.cs
- SoundPlayerAction.cs
- TextFindEngine.cs
- ObfuscateAssemblyAttribute.cs
- XsdDuration.cs
- HttpListenerResponse.cs
- PaintValueEventArgs.cs
- BitmapDecoder.cs
- FrugalList.cs
- DocumentEventArgs.cs
- Dictionary.cs
- ComPlusInstanceContextInitializer.cs
- ReadWriteObjectLock.cs
- CorruptingExceptionCommon.cs
- uribuilder.cs
- ResourceSetExpression.cs
- MethodAccessException.cs
- BitmapVisualManager.cs
- ListViewAutomationPeer.cs
- ThreadBehavior.cs
- WebPartUtil.cs
- ComponentDispatcherThread.cs
- ServiceInfoCollection.cs
- FixedSOMTable.cs
- ResourceDictionary.cs
- XmlSchemaDocumentation.cs
- ToolStripDropDownClosedEventArgs.cs
- ContainerControl.cs
- WebPartVerbsEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- Action.cs
- TextBox.cs
- XmlSchemaParticle.cs
- ClientData.cs
- NotSupportedException.cs
- XmlLangPropertyAttribute.cs
- RepeatButtonAutomationPeer.cs
- AnnouncementInnerClient11.cs
- WindowsSpinner.cs
- PenContexts.cs
- Models.cs
- ToolboxCategory.cs
- DataSvcMapFileSerializer.cs
- ExpressionValueEditor.cs
- TextBox.cs