Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Media / Animation / StopStoryboard.cs / 1 / 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
- SignedInfo.cs
- DockProviderWrapper.cs
- TextProperties.cs
- SplitterEvent.cs
- IntellisenseTextBox.designer.cs
- NotifyInputEventArgs.cs
- LingerOption.cs
- SQLGuidStorage.cs
- FontSource.cs
- DataGridViewCellStyleBuilderDialog.cs
- TrustLevelCollection.cs
- ProcessHostFactoryHelper.cs
- EdmEntityTypeAttribute.cs
- ProfileEventArgs.cs
- GridPatternIdentifiers.cs
- Attributes.cs
- HeaderUtility.cs
- SettingsPropertyCollection.cs
- UInt32Storage.cs
- hwndwrapper.cs
- SmuggledIUnknown.cs
- Int32Rect.cs
- SpellerError.cs
- EntityContainerRelationshipSet.cs
- PenContext.cs
- StreamMarshaler.cs
- SelectedDatesCollection.cs
- SynchronousReceiveElement.cs
- Base64Stream.cs
- XPathChildIterator.cs
- HttpCacheVaryByContentEncodings.cs
- itemelement.cs
- FilteredReadOnlyMetadataCollection.cs
- InputManager.cs
- PaginationProgressEventArgs.cs
- Directory.cs
- SingleKeyFrameCollection.cs
- ErrorStyle.cs
- AutoGeneratedField.cs
- OptimizedTemplateContentHelper.cs
- XsltConvert.cs
- ErrorHandler.cs
- NamedElement.cs
- RawStylusInputReport.cs
- FixedElement.cs
- IIS7UserPrincipal.cs
- CodeTypeDelegate.cs
- ResXFileRef.cs
- SpinWait.cs
- EdmConstants.cs
- Rfc4050KeyFormatter.cs
- AnnotationComponentManager.cs
- JpegBitmapEncoder.cs
- LinkButton.cs
- MouseButton.cs
- FactoryMaker.cs
- ToolStripOverflowButton.cs
- ScrollProperties.cs
- dbenumerator.cs
- SqlUtils.cs
- DrawingContextDrawingContextWalker.cs
- CellIdBoolean.cs
- XsltInput.cs
- PointHitTestResult.cs
- PatternMatchRules.cs
- _Semaphore.cs
- StylusTouchDevice.cs
- HtmlImageAdapter.cs
- TopClause.cs
- RepeatInfo.cs
- PiiTraceSource.cs
- UITypeEditors.cs
- StatusBarPanelClickEvent.cs
- DesignerLoader.cs
- SymmetricAlgorithm.cs
- NamedElement.cs
- HttpAsyncResult.cs
- Listbox.cs
- DbConnectionStringBuilder.cs
- HelpOperationInvoker.cs
- ParserHooks.cs
- EntityTypeBase.cs
- BaseCollection.cs
- EditorZoneBase.cs
- Decorator.cs
- Deflater.cs
- PartitionResolver.cs
- PeerNameResolver.cs
- TypeForwardedToAttribute.cs
- StructuralType.cs
- TemplatePropertyEntry.cs
- COM2Properties.cs
- CodeSnippetStatement.cs
- DBConnectionString.cs
- PackagePart.cs
- ISAPIRuntime.cs
- Byte.cs
- HttpChannelFactory.cs
- UnsafeNativeMethodsCLR.cs
- Models.cs