Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Animation / AnimationException.cs / 1 / AnimationException.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // //--------------------------------------------------------------------------- using System; using System.Runtime.Serialization; using System.Windows.Media.Animation; using MS.Internal.PresentationCore; // SR, SRID namespace System.Windows.Media.Animation { ////// This is a wrapped exception designed to be thrown when we encounter an exception in /// the process of animating. It provides the AnimationClock controlling the animation, /// the DependencyProperty on which the animation is applied, and IAnimatable target /// element on which the DependencyProperty is set. /// [Serializable] public sealed class AnimationException : SystemException { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Internal Constructor /// /// /// /// /// /// internal AnimationException( AnimationClock clock, DependencyProperty property, IAnimatable target, string message, Exception innerException) : base(message, innerException) { _clock = clock; _property = property; _targetElement = target; } ////// Constructor used to deserialize the exception /// /// /// private AnimationException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion // Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// Clock represents the AnimationClock currently animating the /// DependencyObject / DependencyProperty pair. /// public AnimationClock Clock { get { return _clock; } } ////// Property represents the DependencyProperty that is being animated. The DependencyObject /// on which this property is set is the Target. /// public DependencyProperty Property { get { return _property; } } ////// Target represents the IAnimatable on which the animation is being applied; /// it is the IAnimatable DependencyObject on which 'Property' has been set /// public IAnimatable Target { get { return _targetElement; } } #endregion // Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields [NonSerialized] private AnimationClock _clock; [NonSerialized] private DependencyProperty _property; [NonSerialized] private IAnimatable _targetElement; #endregion // Private Fields } } // 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
- SystemException.cs
- LayoutEditorPart.cs
- CodeDirectiveCollection.cs
- DockPattern.cs
- DataObject.cs
- SudsParser.cs
- WebScriptServiceHostFactory.cs
- ResourceWriter.cs
- LocalIdKeyIdentifierClause.cs
- SystemWebExtensionsSectionGroup.cs
- Activation.cs
- OperationExecutionFault.cs
- AuthenticationModuleElementCollection.cs
- RemotingException.cs
- ISAPIWorkerRequest.cs
- ProcessHostServerConfig.cs
- BitmapMetadataBlob.cs
- querybuilder.cs
- WindowsToolbar.cs
- InternalConfigConfigurationFactory.cs
- NullRuntimeConfig.cs
- Composition.cs
- OdbcReferenceCollection.cs
- ArrayWithOffset.cs
- InvalidPropValue.cs
- XomlCompilerResults.cs
- DSASignatureFormatter.cs
- ConnectionManagementElement.cs
- TagMapInfo.cs
- StylusPointPropertyUnit.cs
- Composition.cs
- JsonReader.cs
- DbDataAdapter.cs
- RegistrationServices.cs
- BinaryObjectInfo.cs
- HtmlElement.cs
- Binding.cs
- TransactionManagerProxy.cs
- MessageEnumerator.cs
- RecognitionResult.cs
- TemplatedWizardStep.cs
- MimeFormReflector.cs
- Regex.cs
- WebPartChrome.cs
- DrawingVisual.cs
- SpecularMaterial.cs
- AssemblyAttributes.cs
- _emptywebproxy.cs
- SoapSchemaMember.cs
- MessageHeaderDescriptionCollection.cs
- SafePEFileHandle.cs
- tooltip.cs
- SharedPerformanceCounter.cs
- PolicyManager.cs
- UIElementHelper.cs
- UserControlCodeDomTreeGenerator.cs
- Input.cs
- SecUtil.cs
- EntityDataSourceContainerNameConverter.cs
- TextTreeTextBlock.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ColorEditor.cs
- WebDisplayNameAttribute.cs
- Utils.cs
- ConsoleKeyInfo.cs
- BinaryObjectWriter.cs
- XmlSubtreeReader.cs
- XmlSchemaType.cs
- AnnotationElement.cs
- GifBitmapDecoder.cs
- UtilityExtension.cs
- HttpFileCollectionWrapper.cs
- StandardBindingOptionalReliableSessionElement.cs
- ObjectStateManagerMetadata.cs
- StructuralObject.cs
- IdentitySection.cs
- TabControlAutomationPeer.cs
- SqlConnectionStringBuilder.cs
- MetadataItemEmitter.cs
- DesignerWithHeader.cs
- BitmapCacheBrush.cs
- TextShapeableCharacters.cs
- IdentityHolder.cs
- NegotiateStream.cs
- DocumentViewerConstants.cs
- WithParamAction.cs
- TypeConverterHelper.cs
- NCryptSafeHandles.cs
- DependencyPropertyKind.cs
- HttpHeaderCollection.cs
- Internal.cs
- SqlClientWrapperSmiStream.cs
- ClientSideQueueItem.cs
- TreeViewImageIndexConverter.cs
- ResourceReferenceKeyNotFoundException.cs
- Dictionary.cs
- TabControl.cs
- ControlCollection.cs
- ICspAsymmetricAlgorithm.cs
- DataSourceCollectionBase.cs