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
- BindingManagerDataErrorEventArgs.cs
- SystemIPGlobalStatistics.cs
- SectionRecord.cs
- FlowLayoutPanel.cs
- WebPartDescription.cs
- GridViewColumnCollectionChangedEventArgs.cs
- JoinGraph.cs
- XmlSchemaAnyAttribute.cs
- XsdBuilder.cs
- TabPanel.cs
- DynamicField.cs
- NTAccount.cs
- assemblycache.cs
- DBAsyncResult.cs
- TemplateApplicationHelper.cs
- ApplicationId.cs
- CookieProtection.cs
- SecurityHelper.cs
- PageVisual.cs
- AssertSection.cs
- ServerValidateEventArgs.cs
- ColorContextHelper.cs
- Stack.cs
- MetadataProperty.cs
- RequestReplyCorrelator.cs
- Inflater.cs
- HtmlGenericControl.cs
- WorkflowViewStateService.cs
- TextBreakpoint.cs
- ProjectedWrapper.cs
- GlobalProxySelection.cs
- PolyLineSegment.cs
- OrderPreservingSpoolingTask.cs
- DesignerActionPanel.cs
- TreeWalker.cs
- InkCanvas.cs
- Line.cs
- HttpCookie.cs
- CatalogZone.cs
- Block.cs
- BaseParaClient.cs
- BitmapScalingModeValidation.cs
- ThreadAbortException.cs
- DescendentsWalker.cs
- CriticalExceptions.cs
- ResourcesChangeInfo.cs
- FlowLayoutPanel.cs
- StringUtil.cs
- FrameworkTemplate.cs
- MetabaseSettingsIis7.cs
- SymbolUsageManager.cs
- ChangeToolStripParentVerb.cs
- EventMappingSettings.cs
- XmlIlGenerator.cs
- XslException.cs
- Int32Rect.cs
- Dispatcher.cs
- ProfileBuildProvider.cs
- FilterException.cs
- ScriptResourceMapping.cs
- Stacktrace.cs
- WebPartZoneDesigner.cs
- TraceSection.cs
- NativeMethods.cs
- ToolStripStatusLabel.cs
- ContentAlignmentEditor.cs
- TypeContext.cs
- Visual.cs
- QueryNode.cs
- Preprocessor.cs
- StatusBarItem.cs
- _DomainName.cs
- BindingExpressionUncommonField.cs
- DispatchChannelSink.cs
- EntityDataSourceStatementEditor.cs
- SqlParameterCollection.cs
- DefaultValidator.cs
- OrCondition.cs
- _RegBlobWebProxyDataBuilder.cs
- basecomparevalidator.cs
- ConsoleTraceListener.cs
- HttpException.cs
- OleCmdHelper.cs
- AppSettingsExpressionBuilder.cs
- PageVisual.cs
- NavigateEvent.cs
- DiscoveryService.cs
- InputLanguageSource.cs
- TouchFrameEventArgs.cs
- RealizationContext.cs
- Main.cs
- RecognitionResult.cs
- FixedSOMGroup.cs
- SqlNamer.cs
- DataControlImageButton.cs
- SystemIcons.cs
- GridViewCancelEditEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- Cloud.cs
- TrustLevel.cs