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
- RenderData.cs
- User.cs
- SQLUtility.cs
- DirectoryNotFoundException.cs
- ToolStripDropDownItem.cs
- GenerateScriptTypeAttribute.cs
- SecureUICommand.cs
- Validator.cs
- DataGridHeaderBorder.cs
- ComPlusDiagnosticTraceRecords.cs
- MenuBase.cs
- TableRowCollection.cs
- TraceProvider.cs
- FigureParagraph.cs
- MessageFormatterConverter.cs
- codemethodreferenceexpression.cs
- CustomAttributeSerializer.cs
- WindowsAuthenticationModule.cs
- EntityCommandCompilationException.cs
- ApplyTemplatesAction.cs
- CurrentTimeZone.cs
- ListViewInsertEventArgs.cs
- BitmapEffectvisualstate.cs
- OdbcConnection.cs
- DataGridTextBoxColumn.cs
- HMAC.cs
- BehaviorEditorPart.cs
- Label.cs
- SiteMapNodeItemEventArgs.cs
- FindResponse.cs
- DoubleCollectionValueSerializer.cs
- GridViewAutomationPeer.cs
- RichTextBoxConstants.cs
- DataGridComponentEditor.cs
- CodeValidator.cs
- XmlSerializationWriter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- IEnumerable.cs
- XmlValueConverter.cs
- SocketStream.cs
- XmlUtf8RawTextWriter.cs
- VectorCollectionConverter.cs
- ExpiredSecurityTokenException.cs
- BodyGlyph.cs
- ListBoxItemWrapperAutomationPeer.cs
- HttpPostLocalhostServerProtocol.cs
- DriveNotFoundException.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataGridViewRowEventArgs.cs
- UIHelper.cs
- RecognizeCompletedEventArgs.cs
- GACMembershipCondition.cs
- PreservationFileWriter.cs
- HyperLinkField.cs
- FontFamilyValueSerializer.cs
- RightsManagementPermission.cs
- FormsIdentity.cs
- UserNameSecurityTokenAuthenticator.cs
- HostAdapter.cs
- InfoCardSymmetricAlgorithm.cs
- PartManifestEntry.cs
- TraceProvider.cs
- WebConvert.cs
- HttpCapabilitiesEvaluator.cs
- iisPickupDirectory.cs
- TextElementEnumerator.cs
- ExpressionBuilderCollection.cs
- ContentPlaceHolderDesigner.cs
- Cursor.cs
- XPathAxisIterator.cs
- KnowledgeBase.cs
- Validator.cs
- XmlReflectionImporter.cs
- WindowsListViewItemCheckBox.cs
- DoubleLinkList.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- CharacterString.cs
- ConfigXmlText.cs
- ObjectStateManager.cs
- RectangleGeometry.cs
- RoleGroup.cs
- FieldMetadata.cs
- SizeAnimation.cs
- ResourceAttributes.cs
- DataSetMappper.cs
- VisualBrush.cs
- LoggedException.cs
- BoolExpressionVisitors.cs
- Avt.cs
- StringDictionaryEditor.cs
- DriveInfo.cs
- LinkArea.cs
- HttpCapabilitiesBase.cs
- HttpCacheParams.cs
- ToolTip.cs
- WindowsTooltip.cs
- EmbeddedMailObject.cs
- LocalIdKeyIdentifierClause.cs
- FixedDSBuilder.cs
- Logging.cs