Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / RemoveStoryboard.cs / 1305600 / RemoveStoryboard.cs
/****************************************************************************\ * * File: RemoveStoryboard.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 { ////// RemoveStoryboard will call remove on its Storyboard reference when /// it is triggered. /// public sealed class RemoveStoryboard : 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.Remove(containingFE); } else { storyboard.Remove(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
- DropShadowBitmapEffect.cs
- RtType.cs
- CompilerGlobalScopeAttribute.cs
- DataException.cs
- InkSerializer.cs
- TableLayoutCellPaintEventArgs.cs
- ClientScriptItemCollection.cs
- FrameworkElement.cs
- AppSecurityManager.cs
- TextServicesManager.cs
- DBCSCodePageEncoding.cs
- SqlConnectionFactory.cs
- MetadataArtifactLoaderFile.cs
- SmiEventSink_DeferedProcessing.cs
- ProtocolElementCollection.cs
- ColorEditor.cs
- DataPagerFieldItem.cs
- Point3DAnimation.cs
- CaseCqlBlock.cs
- NestPullup.cs
- CircleHotSpot.cs
- ObjectQuery.cs
- DesignTimeParseData.cs
- FreezableDefaultValueFactory.cs
- RightsManagementEncryptedStream.cs
- IndexerNameAttribute.cs
- Tablet.cs
- EntitySet.cs
- EncodingStreamWrapper.cs
- GeneratedView.cs
- MULTI_QI.cs
- ImageDrawing.cs
- MSAAWinEventWrap.cs
- QueryMatcher.cs
- ListViewItemSelectionChangedEvent.cs
- wgx_exports.cs
- BindingExpression.cs
- SectionInformation.cs
- SqlCommandBuilder.cs
- DataTemplate.cs
- LineBreakRecord.cs
- ContractMapping.cs
- StreamGeometry.cs
- BamlMapTable.cs
- _ListenerResponseStream.cs
- MDIClient.cs
- SQLCharsStorage.cs
- EventWaitHandleSecurity.cs
- ObjectDataSourceSelectingEventArgs.cs
- SkewTransform.cs
- XPathSingletonIterator.cs
- Hash.cs
- MsmqIntegrationChannelListener.cs
- PanelStyle.cs
- MouseGestureValueSerializer.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- UnsafeNativeMethods.cs
- DockPanel.cs
- WindowsFormsDesignerOptionService.cs
- RowBinding.cs
- DbConnectionPoolIdentity.cs
- AttributeAction.cs
- PtsContext.cs
- HandleExceptionArgs.cs
- xmlglyphRunInfo.cs
- CommandCollectionEditor.cs
- SecurityCriticalDataForSet.cs
- Stack.cs
- BlurEffect.cs
- safemediahandle.cs
- IPHostEntry.cs
- Timer.cs
- ChannelSinkStacks.cs
- WebPartsPersonalizationAuthorization.cs
- StoreAnnotationsMap.cs
- ToolstripProfessionalRenderer.cs
- TreeViewItemAutomationPeer.cs
- DataRowChangeEvent.cs
- OutputBuffer.cs
- TreeViewImageIndexConverter.cs
- SoapIgnoreAttribute.cs
- MobileUserControl.cs
- ReadOnlyHierarchicalDataSource.cs
- TimeEnumHelper.cs
- webbrowsersite.cs
- IPEndPoint.cs
- ViewStateModeByIdAttribute.cs
- HashUtility.cs
- TextBlock.cs
- WebPartCollection.cs
- GACMembershipCondition.cs
- UpdatePanelControlTrigger.cs
- GridViewRowEventArgs.cs
- WebPartTransformer.cs
- _FtpControlStream.cs
- CorrelationService.cs
- Invariant.cs
- ExpressionCopier.cs
- SchemaHelper.cs
- TransactionOptions.cs