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
- RegexGroup.cs
- SerializationInfoEnumerator.cs
- ObjectFullSpanRewriter.cs
- StylusPointPropertyUnit.cs
- RegexMatchCollection.cs
- SectionVisual.cs
- ProtectedConfiguration.cs
- SHA384.cs
- ButtonFlatAdapter.cs
- CompilerGlobalScopeAttribute.cs
- TreeChangeInfo.cs
- UpdateProgress.cs
- SamlAuthenticationClaimResource.cs
- Point4DConverter.cs
- SamlAssertion.cs
- OptimalTextSource.cs
- ButtonFieldBase.cs
- CSharpCodeProvider.cs
- Cursors.cs
- TypedTableBaseExtensions.cs
- DetailsView.cs
- SafeNativeMethods.cs
- EastAsianLunisolarCalendar.cs
- TakeQueryOptionExpression.cs
- GenericAuthenticationEventArgs.cs
- Cursor.cs
- SafeRightsManagementEnvironmentHandle.cs
- Array.cs
- NetNamedPipeSecurityMode.cs
- AssociationType.cs
- DateTimePicker.cs
- WindowsListViewScroll.cs
- NameTable.cs
- FieldMetadata.cs
- ToolStripItem.cs
- FileDialog_Vista.cs
- FixedSOMPageElement.cs
- DuplexClientBase.cs
- AnnouncementEndpointElement.cs
- ValueQuery.cs
- UserValidatedEventArgs.cs
- ProfessionalColors.cs
- SpeechSeg.cs
- Rectangle.cs
- SwitchCase.cs
- RoleServiceManager.cs
- GeometryCollection.cs
- NullRuntimeConfig.cs
- UpdateTranslator.cs
- SchemaElementDecl.cs
- AndMessageFilterTable.cs
- StackSpiller.Bindings.cs
- CryptoKeySecurity.cs
- FunctionDescription.cs
- RectangleConverter.cs
- CanExecuteRoutedEventArgs.cs
- FixedSOMFixedBlock.cs
- CatalogZone.cs
- HashCodeCombiner.cs
- SplineQuaternionKeyFrame.cs
- ThemeDirectoryCompiler.cs
- MessageFilterException.cs
- ImportedNamespaceContextItem.cs
- CfgRule.cs
- remotingproxy.cs
- ParameterModifier.cs
- ContainsRowNumberChecker.cs
- XmlSerializationReader.cs
- figurelengthconverter.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- SupportsEventValidationAttribute.cs
- TreeViewHitTestInfo.cs
- TextBoxAutomationPeer.cs
- DoubleUtil.cs
- DataServiceKeyAttribute.cs
- OutputCacheProviderCollection.cs
- X500Name.cs
- StrokeDescriptor.cs
- WebPartManagerInternals.cs
- ThreadExceptionDialog.cs
- AttributeTable.cs
- Script.cs
- Authorization.cs
- OracleDataReader.cs
- NameValueCollection.cs
- GenericAuthenticationEventArgs.cs
- BaseDataList.cs
- FixedSOMTextRun.cs
- ConsumerConnectionPoint.cs
- RoleGroupCollection.cs
- CoreSwitches.cs
- DocobjHost.cs
- WindowsTokenRoleProvider.cs
- PreDigestedSignedInfo.cs
- SafeHandles.cs
- ColumnCollection.cs
- MatrixTransform.cs
- RawContentTypeMapper.cs
- PriorityQueue.cs
- AuthenticationService.cs