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 / RemoveStoryboard.cs / 1 / 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. /****************************************************************************\ * * 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
- ApplicationDirectoryMembershipCondition.cs
- CompilerResults.cs
- DataGridItemAttachedStorage.cs
- XsdDateTime.cs
- ScriptBehaviorDescriptor.cs
- WinInetCache.cs
- PrintPreviewControl.cs
- AdapterUtil.cs
- TemplateControl.cs
- ConfigXmlCDataSection.cs
- SystemTcpConnection.cs
- PathData.cs
- WebPartEditVerb.cs
- TrackingStringDictionary.cs
- FixUpCollection.cs
- InvalidEnumArgumentException.cs
- ExpressionPrinter.cs
- Win32.cs
- GestureRecognizer.cs
- SqlFacetAttribute.cs
- XmlUtil.cs
- StatusBarAutomationPeer.cs
- SkinBuilder.cs
- ChtmlImageAdapter.cs
- SchemaCreator.cs
- BlockExpression.cs
- SecurityHeaderElementInferenceEngine.cs
- StylusDevice.cs
- Pair.cs
- NextPreviousPagerField.cs
- UIPropertyMetadata.cs
- RightsManagementInformation.cs
- XmlSignificantWhitespace.cs
- SimpleType.cs
- SafeMILHandle.cs
- TraceSource.cs
- BooleanConverter.cs
- Canvas.cs
- SqlDataSourceSelectingEventArgs.cs
- SecurityElement.cs
- SnapshotChangeTrackingStrategy.cs
- SafeThemeHandle.cs
- OdbcException.cs
- OuterGlowBitmapEffect.cs
- WorkflowEnvironment.cs
- TransactedBatchContext.cs
- Point3DAnimationBase.cs
- NotSupportedException.cs
- NumberFormatter.cs
- LoginName.cs
- AssemblyCache.cs
- SharedDp.cs
- KnownBoxes.cs
- oledbmetadatacolumnnames.cs
- SecurityResources.cs
- DesignerLoader.cs
- OdbcFactory.cs
- CngProvider.cs
- BatchWriter.cs
- OutputCacheSettingsSection.cs
- ListDictionaryInternal.cs
- EntityContainerRelationshipSetEnd.cs
- WebPartConnectionCollection.cs
- WeakRefEnumerator.cs
- TableRowsCollectionEditor.cs
- XamlSerializationHelper.cs
- SystemWebCachingSectionGroup.cs
- WindowsIPAddress.cs
- WorkflowInstance.cs
- VirtualDirectoryMappingCollection.cs
- COAUTHINFO.cs
- TextCompositionEventArgs.cs
- ByteStorage.cs
- SelectionHighlightInfo.cs
- HwndSubclass.cs
- PerformanceCounterScope.cs
- LambdaCompiler.Statements.cs
- XMLSchema.cs
- SafeFileMappingHandle.cs
- MessageFormatterConverter.cs
- BevelBitmapEffect.cs
- EnumerableRowCollectionExtensions.cs
- ReceiveMessageContent.cs
- Point4D.cs
- NavigationExpr.cs
- PropertiesTab.cs
- SettingsAttributes.cs
- TouchPoint.cs
- Tile.cs
- OracleString.cs
- GridView.cs
- HtmlTernaryTree.cs
- EntityCollection.cs
- baseaxisquery.cs
- WindowsListViewItem.cs
- GetCryptoTransformRequest.cs
- EventSinkActivity.cs
- EncodingTable.cs
- MachineSettingsSection.cs
- DetailsViewRowCollection.cs