Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Media / Animation / ResumeStoryboard.cs / 1 / 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
- GlobalEventManager.cs
- ExtenderProvidedPropertyAttribute.cs
- LingerOption.cs
- Subset.cs
- VoiceChangeEventArgs.cs
- RijndaelManaged.cs
- EncryptedPackage.cs
- ChineseLunisolarCalendar.cs
- serverconfig.cs
- TCPClient.cs
- DataGridCaption.cs
- SchemaMapping.cs
- LocatorManager.cs
- MarginsConverter.cs
- _DomainName.cs
- ClientFormsAuthenticationCredentials.cs
- ExpressionBinding.cs
- SchemaNotation.cs
- SoapParser.cs
- PointAnimationUsingKeyFrames.cs
- AdornedElementPlaceholder.cs
- CodeCommentStatementCollection.cs
- UrlMappingsSection.cs
- NamespaceInfo.cs
- SpStreamWrapper.cs
- OdbcPermission.cs
- ArrayConverter.cs
- BlobPersonalizationState.cs
- TimeIntervalCollection.cs
- UnsafeNativeMethods.cs
- TaiwanLunisolarCalendar.cs
- MembershipUser.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WebZone.cs
- FormViewInsertEventArgs.cs
- activationcontext.cs
- COM2PropertyDescriptor.cs
- ExecutionPropertyManager.cs
- WebSysDefaultValueAttribute.cs
- ToolBarDesigner.cs
- PrePostDescendentsWalker.cs
- TriggerCollection.cs
- DnsEndPoint.cs
- SoapObjectWriter.cs
- KeyValueConfigurationElement.cs
- DbConnectionStringBuilder.cs
- ADRoleFactory.cs
- IList.cs
- DataSvcMapFileSerializer.cs
- CopyCodeAction.cs
- ReadOnlyCollection.cs
- RichTextBox.cs
- ECDsaCng.cs
- WebPartCatalogCloseVerb.cs
- XmlObjectSerializerContext.cs
- AddingNewEventArgs.cs
- EntityDesignerDataSourceView.cs
- XmlAttribute.cs
- PrintPreviewDialog.cs
- Size3D.cs
- RotateTransform3D.cs
- DivideByZeroException.cs
- UnsafeNativeMethods.cs
- ActiveXContainer.cs
- CharacterHit.cs
- TagNameToTypeMapper.cs
- WebPartChrome.cs
- ContractMapping.cs
- ManualResetEventSlim.cs
- SmtpReplyReaderFactory.cs
- DbParameterCollectionHelper.cs
- KeyTimeConverter.cs
- EncodingDataItem.cs
- BitmapVisualManager.cs
- WmlLinkAdapter.cs
- ConstructorNeedsTagAttribute.cs
- GenerateScriptTypeAttribute.cs
- EnumMemberAttribute.cs
- ChameleonKey.cs
- ContextMenu.cs
- Fx.cs
- ParserStreamGeometryContext.cs
- ProxyGenerationError.cs
- CheckBoxList.cs
- MessageHeader.cs
- AssertValidation.cs
- XPathItem.cs
- CorrelationActionMessageFilter.cs
- MessageQueuePermissionEntry.cs
- BindMarkupExtensionSerializer.cs
- ScopelessEnumAttribute.cs
- CodeNamespaceImportCollection.cs
- NullableLongSumAggregationOperator.cs
- followingquery.cs
- KnownColorTable.cs
- TreeViewImageKeyConverter.cs
- storepermissionattribute.cs
- EventMappingSettingsCollection.cs
- WebCategoryAttribute.cs
- SqlRetyper.cs