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
- OleDbEnumerator.cs
- RangeValidator.cs
- XmlCharCheckingWriter.cs
- XmlILModule.cs
- DesignerCommandAdapter.cs
- PageThemeParser.cs
- VoiceChangeEventArgs.cs
- EventRouteFactory.cs
- AlphabeticalEnumConverter.cs
- DataGridClipboardCellContent.cs
- AttributeCollection.cs
- PrintPreviewControl.cs
- GotoExpression.cs
- RoleService.cs
- ColumnClickEvent.cs
- TypedReference.cs
- QuotedPrintableStream.cs
- RemotingConfigParser.cs
- TypeSource.cs
- StyleBamlRecordReader.cs
- ReferenceAssemblyAttribute.cs
- BindingList.cs
- RuntimeConfig.cs
- RegexCharClass.cs
- XmlException.cs
- SqlFactory.cs
- LayoutTableCell.cs
- ContextMenuAutomationPeer.cs
- MemberRelationshipService.cs
- DataControlFieldHeaderCell.cs
- CompositeTypefaceMetrics.cs
- RepeatButtonAutomationPeer.cs
- GridViewItemAutomationPeer.cs
- UriTemplateDispatchFormatter.cs
- XamlReaderHelper.cs
- xmlsaver.cs
- PromptStyle.cs
- ServiceContractGenerationContext.cs
- NetDataContractSerializer.cs
- DrawingAttributeSerializer.cs
- MouseActionConverter.cs
- SortableBindingList.cs
- _DomainName.cs
- InputLanguageEventArgs.cs
- WarningException.cs
- TableChangeProcessor.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ControlAdapter.cs
- LocalBuilder.cs
- WebPartMenu.cs
- VariableQuery.cs
- DataGridRow.cs
- WSTrust.cs
- TemplateParser.cs
- CommonXSendMessage.cs
- SoapInteropTypes.cs
- ImageIndexConverter.cs
- ListItemConverter.cs
- AxImporter.cs
- MenuItemBindingCollection.cs
- odbcmetadatacolumnnames.cs
- EventLogReader.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- WindowsTitleBar.cs
- PathFigureCollection.cs
- SerializationEventsCache.cs
- BehaviorDragDropEventArgs.cs
- RSAProtectedConfigurationProvider.cs
- DiscoveryInnerClientAdhoc11.cs
- JoinElimination.cs
- ServiceInstanceProvider.cs
- X509Certificate.cs
- CompositeActivityMarkupSerializer.cs
- RoleGroup.cs
- SharedUtils.cs
- AnchorEditor.cs
- Connector.cs
- DisplayInformation.cs
- LinqDataSourceValidationException.cs
- PolicyUnit.cs
- COM2IProvidePropertyBuilderHandler.cs
- KnowledgeBase.cs
- XmlSequenceWriter.cs
- TypeListConverter.cs
- BulletChrome.cs
- QueryResult.cs
- AppearanceEditorPart.cs
- TextRange.cs
- XmlDataCollection.cs
- ItemContainerProviderWrapper.cs
- OracleConnectionString.cs
- AbstractSvcMapFileLoader.cs
- ChameleonKey.cs
- Border.cs
- PKCS1MaskGenerationMethod.cs
- JsonWriter.cs
- DataListItemEventArgs.cs
- AccessDataSourceView.cs
- Pair.cs
- ConnectivityStatus.cs