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
- TextTreeNode.cs
- PropertyInformationCollection.cs
- CmsInterop.cs
- ValidateNames.cs
- DeclarativeConditionsCollection.cs
- ProfileManager.cs
- Model3DGroup.cs
- XamlFilter.cs
- PolicyLevel.cs
- MultiSelector.cs
- Transform.cs
- BooleanConverter.cs
- DockEditor.cs
- CriticalHandle.cs
- NodeFunctions.cs
- SelectQueryOperator.cs
- Lease.cs
- MutexSecurity.cs
- ToolboxItemImageConverter.cs
- CodeDefaultValueExpression.cs
- GenerateHelper.cs
- PlainXmlDeserializer.cs
- RequestQueue.cs
- ExpressionBuilderCollection.cs
- AutoGeneratedFieldProperties.cs
- AttributedMetaModel.cs
- RegistrySecurity.cs
- AspCompat.cs
- MenuItemCollection.cs
- DataGridRowHeaderAutomationPeer.cs
- ConfigurationManagerHelper.cs
- SapiInterop.cs
- Vertex.cs
- SchemaDeclBase.cs
- Content.cs
- ContextDataSource.cs
- BindValidator.cs
- mediaeventargs.cs
- CursorConverter.cs
- ClientUrlResolverWrapper.cs
- TableHeaderCell.cs
- ServiceReference.cs
- Triplet.cs
- AlphabetConverter.cs
- MessagePropertyVariants.cs
- WindowsRichEdit.cs
- LogWriteRestartAreaAsyncResult.cs
- ItemsChangedEventArgs.cs
- DetailsViewModeEventArgs.cs
- FunctionGenerator.cs
- processwaithandle.cs
- HtmlInputPassword.cs
- DataGridAutoFormatDialog.cs
- ToolStripPanelSelectionBehavior.cs
- QueryableDataSourceView.cs
- PopupEventArgs.cs
- TableFieldsEditor.cs
- PlainXmlWriter.cs
- WebServiceEnumData.cs
- RegistrySecurity.cs
- WriterOutput.cs
- CodeMemberField.cs
- Decorator.cs
- EventMappingSettings.cs
- CodeConstructor.cs
- OdbcConnectionFactory.cs
- PackageDigitalSignature.cs
- HtmlLinkAdapter.cs
- ImageCodecInfoPrivate.cs
- DispatcherOperation.cs
- MsiStyleLogWriter.cs
- BaseTreeIterator.cs
- AttachedAnnotation.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TableAdapterManagerMethodGenerator.cs
- DrawingImage.cs
- DelegateTypeInfo.cs
- DispatcherSynchronizationContext.cs
- SqlExpander.cs
- IPEndPoint.cs
- RijndaelManaged.cs
- DbUpdateCommandTree.cs
- StringInfo.cs
- ResolveCriteriaCD1.cs
- Rectangle.cs
- SplitContainer.cs
- LongMinMaxAggregationOperator.cs
- Row.cs
- IdleTimeoutMonitor.cs
- Activator.cs
- WsatEtwTraceListener.cs
- NativeMethodsCLR.cs
- DetailsViewDeleteEventArgs.cs
- ContextConfiguration.cs
- SafeCryptHandles.cs
- Region.cs
- SingleConverter.cs
- StorageMappingFragment.cs
- RenderingBiasValidation.cs
- ProxyHelper.cs