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
- CalendarDateRange.cs
- ResourceKey.cs
- AttachmentService.cs
- DocumentsTrace.cs
- ApplicationDirectory.cs
- WorkflowItemsPresenter.cs
- NativeMethodsOther.cs
- OracleEncoding.cs
- DataGridViewAccessibleObject.cs
- QilFunction.cs
- XmlSchemaRedefine.cs
- MetadataSource.cs
- SplitterEvent.cs
- odbcmetadatafactory.cs
- Peer.cs
- UrlPath.cs
- LinqDataSourceContextData.cs
- SignatureDescription.cs
- ColumnClickEvent.cs
- ValidatorCompatibilityHelper.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SchemaTypeEmitter.cs
- ObjectHandle.cs
- FixedPosition.cs
- SHA256.cs
- TrackingMemoryStream.cs
- PermissionSetTriple.cs
- TraceHandlerErrorFormatter.cs
- BindingMAnagerBase.cs
- KnownIds.cs
- PenContext.cs
- DocumentViewerBaseAutomationPeer.cs
- ISessionStateStore.cs
- MessageSecurityProtocol.cs
- followingsibling.cs
- SoapInteropTypes.cs
- CodeAccessSecurityEngine.cs
- JsonUriDataContract.cs
- PtsCache.cs
- Geometry3D.cs
- Context.cs
- ClientApiGenerator.cs
- FilterException.cs
- DataBindingsDialog.cs
- Hashtable.cs
- DeclaredTypeElement.cs
- DrawingCollection.cs
- RenderCapability.cs
- PenContext.cs
- AuthenticationModuleElementCollection.cs
- Visitor.cs
- VariableBinder.cs
- FatalException.cs
- JoinGraph.cs
- MsmqProcessProtocolHandler.cs
- ConvertEvent.cs
- QilFunction.cs
- InheritanceContextHelper.cs
- TemplateNodeContextMenu.cs
- EnumType.cs
- MetadataException.cs
- RawStylusSystemGestureInputReport.cs
- Rotation3DKeyFrameCollection.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- SafeArrayRankMismatchException.cs
- CheckBoxAutomationPeer.cs
- NativeMethods.cs
- ReferenceEqualityComparer.cs
- PerformanceCounterPermission.cs
- ArgIterator.cs
- Fault.cs
- ScriptResourceAttribute.cs
- ResponseStream.cs
- ReliabilityContractAttribute.cs
- ProtocolViolationException.cs
- SafeIUnknown.cs
- HiddenFieldPageStatePersister.cs
- CodeIdentifiers.cs
- CompiledAction.cs
- WindowsStatic.cs
- Automation.cs
- DependsOnAttribute.cs
- FileDialog.cs
- MaterializeFromAtom.cs
- _Win32.cs
- Pointer.cs
- Deserializer.cs
- WCFBuildProvider.cs
- XPathMultyIterator.cs
- TextContainerChangeEventArgs.cs
- ReceiveSecurityHeaderEntry.cs
- FileEnumerator.cs
- OptionalMessageQuery.cs
- OleDbRowUpdatedEvent.cs
- HttpPostedFile.cs
- HttpInputStream.cs
- SqlDataSourceView.cs
- XmlElementAttribute.cs
- IdnMapping.cs
- CommandSet.cs