Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. //---------------------------------------------------------------------------- // //// 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
- SqlParameter.cs
- SchemaObjectWriter.cs
- RunClient.cs
- EmptyReadOnlyDictionaryInternal.cs
- FileSecurity.cs
- BuiltInExpr.cs
- UnhandledExceptionEventArgs.cs
- TextEditorSelection.cs
- RankException.cs
- WebBrowser.cs
- WebPartVerbsEventArgs.cs
- ContentTextAutomationPeer.cs
- SessionStateContainer.cs
- Size.cs
- GradientStopCollection.cs
- HostingEnvironmentSection.cs
- PageParser.cs
- SqlBuilder.cs
- ProcessHostConfigUtils.cs
- X509Certificate2.cs
- EarlyBoundInfo.cs
- safelinkcollection.cs
- Size3DConverter.cs
- KnownColorTable.cs
- TreeNodeCollection.cs
- Point3DCollection.cs
- SchemaHelper.cs
- BaseDataBoundControl.cs
- SimpleApplicationHost.cs
- SQLBytesStorage.cs
- ApplicationServicesHostFactory.cs
- XmlWrappingWriter.cs
- LoginView.cs
- AssemblyResourceLoader.cs
- RelationshipSet.cs
- ModelPerspective.cs
- PropertyNames.cs
- DriveNotFoundException.cs
- SignatureToken.cs
- TextDecoration.cs
- ScriptingProfileServiceSection.cs
- SortedList.cs
- ValidationUtility.cs
- CryptoApi.cs
- Update.cs
- ReferentialConstraint.cs
- RenderDataDrawingContext.cs
- IDReferencePropertyAttribute.cs
- FixedLineResult.cs
- EventLogPermission.cs
- ZipQueryOperator.cs
- ExcCanonicalXml.cs
- securitycriticaldataformultiplegetandset.cs
- SettingsSection.cs
- NavigatorOutput.cs
- RawStylusSystemGestureInputReport.cs
- Update.cs
- SplitterPanelDesigner.cs
- SafePEFileHandle.cs
- ConnectionString.cs
- FileLevelControlBuilderAttribute.cs
- VisualStateManager.cs
- KeyGestureConverter.cs
- BitmapCodecInfo.cs
- DesignConnectionCollection.cs
- EntityRecordInfo.cs
- QueryCursorEventArgs.cs
- UriScheme.cs
- Operators.cs
- MsmqIntegrationMessagePool.cs
- DropTarget.cs
- DependencyObjectProvider.cs
- WebPartTransformerCollection.cs
- Rfc2898DeriveBytes.cs
- SimpleExpression.cs
- TcpHostedTransportConfiguration.cs
- URLString.cs
- SQLResource.cs
- ObjectTag.cs
- CodeNamespaceImportCollection.cs
- RadioButtonRenderer.cs
- DataTemplate.cs
- XmlNavigatorStack.cs
- Int32CAMarshaler.cs
- RecognizedAudio.cs
- DesignerVerbCollection.cs
- EventHandlers.cs
- BaseCodeDomTreeGenerator.cs
- EntityParameterCollection.cs
- RawUIStateInputReport.cs
- FreezableOperations.cs
- ConnectionOrientedTransportBindingElement.cs
- EqualityComparer.cs
- MetadataException.cs
- TransactionScope.cs
- SynchronizedDispatch.cs
- CAGDesigner.cs
- StreamingContext.cs
- XmlSchemaSubstitutionGroup.cs
- WinEventWrap.cs