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
- XpsInterleavingPolicy.cs
- AnimationTimeline.cs
- FlowDocumentScrollViewer.cs
- TreeIterators.cs
- TrackingDataItem.cs
- AttributeEmitter.cs
- DataPagerFieldCollection.cs
- XmlNode.cs
- AdapterDictionary.cs
- ObjectToken.cs
- BasicHttpSecurity.cs
- RC2CryptoServiceProvider.cs
- Attributes.cs
- WindowsSysHeader.cs
- CssStyleCollection.cs
- ButtonBaseAutomationPeer.cs
- InternalBufferOverflowException.cs
- DataGridViewCellParsingEventArgs.cs
- SliderAutomationPeer.cs
- WebPartConnection.cs
- ClrPerspective.cs
- CacheChildrenQuery.cs
- ListViewInsertEventArgs.cs
- InvalidOleVariantTypeException.cs
- WebExceptionStatus.cs
- ImageListStreamer.cs
- EdmProviderManifest.cs
- XmlAttributeCache.cs
- Translator.cs
- SmiXetterAccessMap.cs
- EntityExpressionVisitor.cs
- ModuleBuilder.cs
- BoundField.cs
- InputBuffer.cs
- ListenerElementsCollection.cs
- Rijndael.cs
- FileUtil.cs
- TableCell.cs
- XmlAnyElementAttributes.cs
- DesignerCategoryAttribute.cs
- GradientStop.cs
- XmlSubtreeReader.cs
- PersonalizationAdministration.cs
- KeyProperty.cs
- Script.cs
- TreeNodeCollection.cs
- SupportsPreviewControlAttribute.cs
- METAHEADER.cs
- ImmutableAssemblyCacheEntry.cs
- SessionPageStateSection.cs
- DateTimeConverter.cs
- PeerEndPoint.cs
- BindingContext.cs
- MappingModelBuildProvider.cs
- InvokePattern.cs
- RayMeshGeometry3DHitTestResult.cs
- TcpHostedTransportConfiguration.cs
- XmlSchemaCollection.cs
- RangeValuePattern.cs
- RoutedPropertyChangedEventArgs.cs
- Baml2006SchemaContext.cs
- GetBrowserTokenRequest.cs
- ModelProperty.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ContentElementAutomationPeer.cs
- TimeSpanValidator.cs
- NativeObjectSecurity.cs
- BaseTemplateParser.cs
- Transform3D.cs
- CompareInfo.cs
- EntityProviderFactory.cs
- CompositionAdorner.cs
- SafeSecurityHandles.cs
- MethodExpression.cs
- SiteMap.cs
- ApplicationServicesHostFactory.cs
- XmlWrappingWriter.cs
- KeyFrames.cs
- TracePayload.cs
- DiscreteKeyFrames.cs
- UpdateManifestForBrowserApplication.cs
- TimeSpanValidatorAttribute.cs
- InfoCardSymmetricCrypto.cs
- OdbcUtils.cs
- Polygon.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ExpressionConverter.cs
- RadioButtonBaseAdapter.cs
- BinaryConverter.cs
- DesignerDataRelationship.cs
- CreatingCookieEventArgs.cs
- HtmlWindowCollection.cs
- LineBreakRecord.cs
- CalloutQueueItem.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- HwndMouseInputProvider.cs
- Perspective.cs
- DataSourceUtil.cs
- AttributeCollection.cs
- PropertyValueUIItem.cs