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
- RelationshipWrapper.cs
- CodeSnippetStatement.cs
- DataGridClipboardCellContent.cs
- OutputCacheProviderCollection.cs
- SQLInt32.cs
- DBConcurrencyException.cs
- XsltContext.cs
- GeneralTransform2DTo3DTo2D.cs
- PeerIPHelper.cs
- _ConnectOverlappedAsyncResult.cs
- QualifiedCellIdBoolean.cs
- BuildProvider.cs
- HtmlWindow.cs
- JumpPath.cs
- PrintDialog.cs
- WebBrowserNavigatingEventHandler.cs
- CalendarModeChangedEventArgs.cs
- PropertyCollection.cs
- MetadataArtifactLoaderCompositeFile.cs
- TextEditorSpelling.cs
- DecimalAnimationUsingKeyFrames.cs
- DataObjectEventArgs.cs
- DBDataPermission.cs
- QilUnary.cs
- Accessible.cs
- BlurEffect.cs
- WebPartConnectionsDisconnectVerb.cs
- SqlBulkCopyColumnMappingCollection.cs
- storepermission.cs
- TypeConverterValueSerializer.cs
- LostFocusEventManager.cs
- ThemeableAttribute.cs
- JsonEnumDataContract.cs
- SqlClientWrapperSmiStreamChars.cs
- DefaultPrintController.cs
- Helpers.cs
- FontSource.cs
- IPAddressCollection.cs
- WebAdminConfigurationHelper.cs
- AssemblyName.cs
- DiscriminatorMap.cs
- EventProperty.cs
- PartitionResolver.cs
- GlyphsSerializer.cs
- Exceptions.cs
- XmlDocumentFragment.cs
- EntityModelBuildProvider.cs
- MsmqUri.cs
- TypeConverterAttribute.cs
- Receive.cs
- DefaultShape.cs
- ComponentChangingEvent.cs
- SiteMapNodeItem.cs
- NamespaceMapping.cs
- TextServicesContext.cs
- HealthMonitoringSectionHelper.cs
- Label.cs
- PlaceHolder.cs
- ClientFactory.cs
- Size3DValueSerializer.cs
- LinkTarget.cs
- CompensatableTransactionScopeActivityDesigner.cs
- StyleBamlRecordReader.cs
- DataGridRowAutomationPeer.cs
- HwndAppCommandInputProvider.cs
- LambdaCompiler.Logical.cs
- CodeFieldReferenceExpression.cs
- DiagnosticTraceSource.cs
- Timer.cs
- QueryExtender.cs
- ScaleTransform3D.cs
- RightsManagementInformation.cs
- FlowNode.cs
- WmfPlaceableFileHeader.cs
- DocumentPageView.cs
- PeerNearMe.cs
- PartialClassGenerationTask.cs
- UnsafeNativeMethods.cs
- DtdParser.cs
- BaseConfigurationRecord.cs
- NameValueCollection.cs
- AdapterDictionary.cs
- ValidatingPropertiesEventArgs.cs
- OdbcDataAdapter.cs
- Transform3DCollection.cs
- DataGridViewColumnHeaderCell.cs
- LoginView.cs
- AnimationClockResource.cs
- LineProperties.cs
- WebResourceAttribute.cs
- TypeSystemHelpers.cs
- KeyNameIdentifierClause.cs
- StackSpiller.Temps.cs
- MessageBox.cs
- ListViewItemEventArgs.cs
- EffectiveValueEntry.cs
- SQLInt16Storage.cs
- SudsCommon.cs
- UniformGrid.cs
- DemultiplexingClientMessageFormatter.cs