Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / StopStoryboard.cs / 1305600 / StopStoryboard.cs
/****************************************************************************\ * * File: StopStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * stops. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// StopStoryboard will call stop on its Storyboard reference when /// it is triggered. /// public sealed class StopStoryboard : 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.Stop(containingFE); } else { storyboard.Stop(containingFCE); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: StopStoryboard.cs * * This object includes a Storyboard reference. When triggered, the Storyboard * stops. * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.Diagnostics; // Debug.Assert namespace System.Windows.Media.Animation { ////// StopStoryboard will call stop on its Storyboard reference when /// it is triggered. /// public sealed class StopStoryboard : 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.Stop(containingFE); } else { storyboard.Stop(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
- RootContext.cs
- MemberHolder.cs
- PropertyMapper.cs
- WebPartVerb.cs
- FieldToken.cs
- NumericExpr.cs
- GatewayIPAddressInformationCollection.cs
- UserCancellationException.cs
- CollectionAdapters.cs
- HttpCookie.cs
- RecordBuilder.cs
- CompositeActivityMarkupSerializer.cs
- WebSysDefaultValueAttribute.cs
- DataGridViewTextBoxColumn.cs
- Stream.cs
- _Semaphore.cs
- GlobalizationSection.cs
- UnauthorizedAccessException.cs
- EventLogPermission.cs
- ExpandableObjectConverter.cs
- Win32.cs
- ToolStripControlHost.cs
- AuthorizationSection.cs
- FileVersion.cs
- FamilyTypefaceCollection.cs
- MembershipSection.cs
- DataGrid.cs
- baseshape.cs
- CompilerResults.cs
- GacUtil.cs
- BaseCodeDomTreeGenerator.cs
- _IPv4Address.cs
- LoginView.cs
- Function.cs
- PackageRelationshipCollection.cs
- ByteAnimation.cs
- SafeMILHandle.cs
- ConnectionManagementSection.cs
- ClientScriptManager.cs
- DataGridViewCellStyle.cs
- AsyncPostBackErrorEventArgs.cs
- DataColumnSelectionConverter.cs
- TrackingRecordPreFilter.cs
- HttpPostedFileWrapper.cs
- DriveInfo.cs
- EmbeddedMailObjectsCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- XmlWrappingWriter.cs
- DiscoveryDocumentReference.cs
- ClientUtils.cs
- precedingsibling.cs
- WebPartCollection.cs
- HyperLinkField.cs
- StorageSetMapping.cs
- ToolStripDropDown.cs
- ExpressionEditorAttribute.cs
- StronglyTypedResourceBuilder.cs
- DeflateEmulationStream.cs
- AnnotationObservableCollection.cs
- ClientSideProviderDescription.cs
- ErrorsHelper.cs
- HtmlEncodedRawTextWriter.cs
- DataSourceSelectArguments.cs
- SelectQueryOperator.cs
- DrawToolTipEventArgs.cs
- TemplateBindingExpressionConverter.cs
- SourceItem.cs
- ErrorWebPart.cs
- LinqDataSourceValidationException.cs
- DispatcherHookEventArgs.cs
- ConfigurationValue.cs
- Preprocessor.cs
- ThrowHelper.cs
- TemplateControlBuildProvider.cs
- TypeDelegator.cs
- NodeInfo.cs
- TypeDelegator.cs
- NativeMethods.cs
- DispatcherProcessingDisabled.cs
- TreeNodeBinding.cs
- XmlILTrace.cs
- SoapProtocolReflector.cs
- OleDbReferenceCollection.cs
- GetReadStreamResult.cs
- ReadOnlyObservableCollection.cs
- AttachedPropertyMethodSelector.cs
- PolicyManager.cs
- CharUnicodeInfo.cs
- MetadataCollection.cs
- TextServicesContext.cs
- EnumBuilder.cs
- WpfPayload.cs
- DrawingDrawingContext.cs
- DefaultAuthorizationContext.cs
- GridToolTip.cs
- LocationReferenceValue.cs
- QuerySettings.cs
- SafeTimerHandle.cs
- TrustManagerMoreInformation.cs
- Convert.cs