Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / AnimationException.cs / 1305600 / 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
- HwndSource.cs
- UInt64.cs
- FormViewUpdatedEventArgs.cs
- BrowserCapabilitiesFactory.cs
- Rect3DValueSerializer.cs
- BasicExpandProvider.cs
- SqlDataSourceView.cs
- WebMethodAttribute.cs
- PointAnimationClockResource.cs
- UriSectionData.cs
- LayoutInformation.cs
- Journaling.cs
- WsatServiceCertificate.cs
- Automation.cs
- MediaSystem.cs
- CorruptStoreException.cs
- DesignTimeParseData.cs
- XmlnsCache.cs
- NameTable.cs
- ColumnMapVisitor.cs
- XmlReader.cs
- ActivityContext.cs
- TextViewSelectionProcessor.cs
- EventLogHandle.cs
- DataGridColumnHeader.cs
- DataPagerCommandEventArgs.cs
- ImageConverter.cs
- TraceRecords.cs
- DesignerView.Commands.cs
- RSAPKCS1SignatureFormatter.cs
- WindowsHyperlink.cs
- GridViewCommandEventArgs.cs
- DateRangeEvent.cs
- XmlSchemas.cs
- PhonemeEventArgs.cs
- CultureData.cs
- CodeGeneratorOptions.cs
- WebHttpSecurityElement.cs
- PointLightBase.cs
- OrderByExpression.cs
- DrawingAttributesDefaultValueFactory.cs
- UpdateEventArgs.cs
- Point3DCollection.cs
- BamlBinaryWriter.cs
- X509LogoTypeExtension.cs
- DataControlPagerLinkButton.cs
- XPathAxisIterator.cs
- DecoderBestFitFallback.cs
- CodeParameterDeclarationExpression.cs
- WindowsStatusBar.cs
- CubicEase.cs
- ReachDocumentSequenceSerializerAsync.cs
- TrackingLocation.cs
- StateChangeEvent.cs
- InputBinding.cs
- MachineKeyValidationConverter.cs
- VBCodeProvider.cs
- CompatibleIComparer.cs
- CollectionView.cs
- GridViewDeletedEventArgs.cs
- IisTraceListener.cs
- HTMLTextWriter.cs
- InputMethodStateChangeEventArgs.cs
- AuthenticationModuleElementCollection.cs
- mediaeventshelper.cs
- Int32Animation.cs
- ThreadPool.cs
- validationstate.cs
- Stacktrace.cs
- _NegotiateClient.cs
- Console.cs
- FutureFactory.cs
- PipeSecurity.cs
- RouteItem.cs
- BufferModesCollection.cs
- AssociationTypeEmitter.cs
- SearchForVirtualItemEventArgs.cs
- HttpApplication.cs
- CompilerErrorCollection.cs
- WsdlBuildProvider.cs
- CodeSnippetExpression.cs
- DataMisalignedException.cs
- TrustManager.cs
- ToolboxDataAttribute.cs
- CategoryAttribute.cs
- SeverityFilter.cs
- FormViewAutoFormat.cs
- WhitespaceRuleReader.cs
- AnonymousIdentificationModule.cs
- MimeObjectFactory.cs
- HyperLinkStyle.cs
- DataServiceResponse.cs
- Cursors.cs
- SqlCacheDependencySection.cs
- GlobalizationSection.cs
- UdpTransportSettingsElement.cs
- Timer.cs
- DataGridCellInfo.cs
- WindowsStreamSecurityBindingElement.cs
- PenThreadPool.cs