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
- VectorCollection.cs
- TypeUnloadedException.cs
- EventListenerClientSide.cs
- AvTraceDetails.cs
- MaterialCollection.cs
- _CacheStreams.cs
- WindowsTitleBar.cs
- ShellProvider.cs
- NoneExcludedImageIndexConverter.cs
- SourceElementsCollection.cs
- PolyLineSegmentFigureLogic.cs
- DynamicQueryableWrapper.cs
- AsyncPostBackErrorEventArgs.cs
- DataGridRow.cs
- TextBox.cs
- TreeBuilder.cs
- ProfileService.cs
- ProcessThread.cs
- TemplateControl.cs
- TextDocumentView.cs
- EnumerableRowCollection.cs
- XmlArrayItemAttribute.cs
- XmlUtf8RawTextWriter.cs
- XmlSchemaNotation.cs
- Component.cs
- EncryptedType.cs
- FtpCachePolicyElement.cs
- FontInfo.cs
- SRGSCompiler.cs
- ConfigurationManagerInternalFactory.cs
- TextDecorations.cs
- OneOfConst.cs
- RemotingAttributes.cs
- StylusLogic.cs
- EventsTab.cs
- WebPartDisplayModeCollection.cs
- PropertyGroupDescription.cs
- Message.cs
- SystemResources.cs
- DynamicDocumentPaginator.cs
- MaskInputRejectedEventArgs.cs
- ProviderManager.cs
- _SSPIWrapper.cs
- TranslateTransform3D.cs
- DropDownButton.cs
- UnmanagedMemoryStreamWrapper.cs
- PlacementWorkspace.cs
- SiteMapSection.cs
- WizardPanelChangingEventArgs.cs
- ListViewAutomationPeer.cs
- HttpHandlersSection.cs
- ValidationPropertyAttribute.cs
- TaskHelper.cs
- GPStream.cs
- SqlServices.cs
- BindUriHelper.cs
- CounterCreationData.cs
- JsonReader.cs
- UnSafeCharBuffer.cs
- FontUnit.cs
- WorkItem.cs
- DataGridViewRowPrePaintEventArgs.cs
- TemplateBaseAction.cs
- cache.cs
- ServicePoint.cs
- TypeRestriction.cs
- CodeDirectiveCollection.cs
- Security.cs
- sitestring.cs
- RowVisual.cs
- Brush.cs
- ClassHandlersStore.cs
- SapiInterop.cs
- X509ChainElement.cs
- ColorBlend.cs
- EqualityComparer.cs
- PieceNameHelper.cs
- SafeArrayTypeMismatchException.cs
- EnumerationRangeValidationUtil.cs
- DCSafeHandle.cs
- ScriptRef.cs
- AuthenticationModuleElementCollection.cs
- SecurityPolicySection.cs
- Types.cs
- TaiwanLunisolarCalendar.cs
- DataGridViewAdvancedBorderStyle.cs
- XsltFunctions.cs
- FormViewDeleteEventArgs.cs
- RoutedEventHandlerInfo.cs
- LocationFactory.cs
- ServiceSecurityContext.cs
- Renderer.cs
- EnumMember.cs
- LinearGradientBrush.cs
- FocusWithinProperty.cs
- SmtpFailedRecipientsException.cs
- TextEditorSelection.cs
- BindingNavigator.cs
- AuthenticationService.cs
- ToolboxItemCollection.cs