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 / 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
- ValidationManager.cs
- Brush.cs
- CompositeFontInfo.cs
- BamlWriter.cs
- ErrorHandler.cs
- AnnotationAuthorChangedEventArgs.cs
- NullableIntAverageAggregationOperator.cs
- TemplatePropertyEntry.cs
- ExtensionFile.cs
- SweepDirectionValidation.cs
- UpdateCommand.cs
- JpegBitmapDecoder.cs
- AmbiguousMatchException.cs
- ClientRoleProvider.cs
- Parsers.cs
- CopyAction.cs
- HwndStylusInputProvider.cs
- ComponentChangingEvent.cs
- ExpressionConverter.cs
- NaturalLanguageHyphenator.cs
- Error.cs
- Ppl.cs
- NestedContainer.cs
- DataGridRelationshipRow.cs
- SoapObjectReader.cs
- Rotation3DKeyFrameCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GridViewEditEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- DrawItemEvent.cs
- SinglePageViewer.cs
- XmlSerializerVersionAttribute.cs
- CombinedGeometry.cs
- CodeDomLocalizationProvider.cs
- DbSourceCommand.cs
- OleTxTransaction.cs
- Binding.cs
- WebControl.cs
- ObjectDataSourceDisposingEventArgs.cs
- Utility.cs
- HMACSHA1.cs
- DateTimeConstantAttribute.cs
- ClientSettings.cs
- MaskedTextBoxDesignerActionList.cs
- CustomExpression.cs
- AcceleratedTokenAuthenticator.cs
- ClockGroup.cs
- ConnectionPointGlyph.cs
- SchemaImporter.cs
- arabicshape.cs
- CachedPathData.cs
- SystemIPAddressInformation.cs
- PasswordTextContainer.cs
- EvidenceTypeDescriptor.cs
- HttpModulesSection.cs
- SystemColors.cs
- ProgressBarAutomationPeer.cs
- ScrollChrome.cs
- SchemaInfo.cs
- Storyboard.cs
- HttpRuntime.cs
- CodeGroup.cs
- PropertyFilterAttribute.cs
- TracingConnection.cs
- MetricEntry.cs
- SerializationHelper.cs
- UriTemplateQueryValue.cs
- ControlAdapter.cs
- CompensatableTransactionScopeActivity.cs
- UniqueEventHelper.cs
- ComPlusSynchronizationContext.cs
- TransactionFlowBindingElement.cs
- OrderablePartitioner.cs
- ContentDesigner.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DrawingVisualDrawingContext.cs
- JsonDeserializer.cs
- BoundColumn.cs
- Label.cs
- PasswordBoxAutomationPeer.cs
- Atom10ItemFormatter.cs
- RectangleF.cs
- MLangCodePageEncoding.cs
- NetworkInterface.cs
- MimeParameter.cs
- ComponentChangingEvent.cs
- LinkUtilities.cs
- DataGridViewRowPrePaintEventArgs.cs
- _PooledStream.cs
- DesignerMetadata.cs
- SvcMapFile.cs
- FixedPageStructure.cs
- SelectionRange.cs
- Attributes.cs
- DataGridColumn.cs
- DataBinder.cs
- PropertyAccessVisitor.cs
- XmlNodeChangedEventManager.cs
- CodeSnippetExpression.cs
- StrongNameMembershipCondition.cs