Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Hyperlink.cs
- PartialList.cs
- RightNameExpirationInfoPair.cs
- DictionarySectionHandler.cs
- ByValueEqualityComparer.cs
- SqlTypesSchemaImporter.cs
- CachedRequestParams.cs
- panel.cs
- SpAudioStreamWrapper.cs
- BufferBuilder.cs
- GeneralTransform2DTo3DTo2D.cs
- CodeMethodReturnStatement.cs
- httpstaticobjectscollection.cs
- RoleBoolean.cs
- XmlSchemaComplexContentExtension.cs
- CombinedGeometry.cs
- UInt16Converter.cs
- RoleBoolean.cs
- XmlAtomErrorReader.cs
- DataFormat.cs
- SoapParser.cs
- _DisconnectOverlappedAsyncResult.cs
- ToolStripItemGlyph.cs
- DataGridAddNewRow.cs
- StringAnimationUsingKeyFrames.cs
- TemplateControlParser.cs
- VisualStyleRenderer.cs
- complextypematerializer.cs
- StringReader.cs
- QueryPageSettingsEventArgs.cs
- HttpBrowserCapabilitiesBase.cs
- UrlPath.cs
- FontSource.cs
- SendActivity.cs
- ExtendedProperty.cs
- TimeZone.cs
- CursorConverter.cs
- DispatcherExceptionEventArgs.cs
- ClipboardProcessor.cs
- X509CertificateChain.cs
- TextClipboardData.cs
- BufferModesCollection.cs
- DynamicMethod.cs
- WebSysDisplayNameAttribute.cs
- ReadOnlyCollection.cs
- AnimatedTypeHelpers.cs
- StructuredTypeEmitter.cs
- SpellerInterop.cs
- Roles.cs
- AssociationSetMetadata.cs
- HtmlHead.cs
- ClientSettingsProvider.cs
- ConsoleTraceListener.cs
- DataGridViewLayoutData.cs
- NTAccount.cs
- XPathDocumentIterator.cs
- EncoderParameter.cs
- Light.cs
- NamedObject.cs
- FontWeightConverter.cs
- OrderByQueryOptionExpression.cs
- TextTreeTextNode.cs
- HttpClientCertificate.cs
- Rect3DConverter.cs
- OleDbInfoMessageEvent.cs
- PropertyCondition.cs
- SoapDocumentMethodAttribute.cs
- AudioFormatConverter.cs
- WpfMemberInvoker.cs
- WebPartHelpVerb.cs
- ListViewPagedDataSource.cs
- TextSimpleMarkerProperties.cs
- Span.cs
- JoinElimination.cs
- CacheDependency.cs
- HtmlEmptyTagControlBuilder.cs
- EncodingTable.cs
- TrayIconDesigner.cs
- DataSetMappper.cs
- ServiceDescriptionImporter.cs
- WindowsBrush.cs
- ConfigurationSchemaErrors.cs
- RSACryptoServiceProvider.cs
- UIServiceHelper.cs
- WebBrowserDesigner.cs
- SpeechEvent.cs
- MetabaseSettings.cs
- wgx_commands.cs
- RectAnimationUsingKeyFrames.cs
- BaseHashHelper.cs
- InvokePattern.cs
- SQLMembershipProvider.cs
- HotCommands.cs
- ProfilePropertyMetadata.cs
- DataGridViewCell.cs
- MobileContainerDesigner.cs
- RegularExpressionValidator.cs
- UpdateTranslator.cs
- DesignerDeviceConfig.cs
- TraceListener.cs