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
- ParallelTimeline.cs
- BinaryReader.cs
- AnnotationResourceChangedEventArgs.cs
- CharEntityEncoderFallback.cs
- StrongName.cs
- FusionWrap.cs
- FacetValues.cs
- ListViewGroup.cs
- SimpleBitVector32.cs
- CookieParameter.cs
- DataGridViewTextBoxCell.cs
- EntityAdapter.cs
- ErrorHandler.cs
- XsltLibrary.cs
- UIAgentRequest.cs
- _ConnectionGroup.cs
- ComponentFactoryHelpers.cs
- ServerIdentity.cs
- GAC.cs
- UserControlCodeDomTreeGenerator.cs
- BoundField.cs
- DataGridItem.cs
- CodeMemberMethod.cs
- SapiGrammar.cs
- Thumb.cs
- OpenTypeCommon.cs
- JsonObjectDataContract.cs
- WeakEventTable.cs
- ToolStripStatusLabel.cs
- KnownBoxes.cs
- XslTransform.cs
- ListenDesigner.cs
- DynamicDocumentPaginator.cs
- DataSourceView.cs
- ISO2022Encoding.cs
- FunctionImportMapping.cs
- RelatedCurrencyManager.cs
- SafeCryptHandles.cs
- ServiceDebugBehavior.cs
- SmtpReplyReaderFactory.cs
- TextEditorSelection.cs
- Highlights.cs
- MediaContextNotificationWindow.cs
- ParserStreamGeometryContext.cs
- SystemResources.cs
- CryptoKeySecurity.cs
- FontWeight.cs
- CustomErrorsSection.cs
- AudioException.cs
- PriorityQueue.cs
- DataGridHeaderBorder.cs
- SQLDecimalStorage.cs
- Transform3D.cs
- Wizard.cs
- CleanUpVirtualizedItemEventArgs.cs
- XmlSchemaSet.cs
- _AutoWebProxyScriptEngine.cs
- Message.cs
- BasicDesignerLoader.cs
- DataGridGeneralPage.cs
- PrefixHandle.cs
- WebPartMenuStyle.cs
- Util.cs
- StorageBasedPackageProperties.cs
- SizeKeyFrameCollection.cs
- ClientUrlResolverWrapper.cs
- TreeNodeEventArgs.cs
- TraceContextEventArgs.cs
- CookielessData.cs
- CLRBindingWorker.cs
- SessionParameter.cs
- TaskDesigner.cs
- LocatorPartList.cs
- JavaScriptString.cs
- MenuAutomationPeer.cs
- InterleavedZipPartStream.cs
- BuilderPropertyEntry.cs
- ToolStripMenuItemCodeDomSerializer.cs
- CategoryAttribute.cs
- FontConverter.cs
- MembershipValidatePasswordEventArgs.cs
- HttpConfigurationSystem.cs
- CurrentTimeZone.cs
- SoapTypeAttribute.cs
- StreamGeometry.cs
- FontFaceLayoutInfo.cs
- FormatterConverter.cs
- AnimationStorage.cs
- HtmlProps.cs
- EntityContainerRelationshipSetEnd.cs
- HandlerBase.cs
- ClientRoleProvider.cs
- _AcceptOverlappedAsyncResult.cs
- XmlCustomFormatter.cs
- DataSetFieldSchema.cs
- ApplicationInfo.cs
- SessionParameter.cs
- TextEditorSelection.cs
- DataControlCommands.cs
- CompiledRegexRunnerFactory.cs