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
- TreeBuilder.cs
- AccessDataSourceWizardForm.cs
- CodeDirectionExpression.cs
- SystemColors.cs
- InvokePattern.cs
- PackageProperties.cs
- NetNamedPipeBindingCollectionElement.cs
- InheritanceAttribute.cs
- StandardBindingOptionalReliableSessionElement.cs
- SelectedCellsCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- ResolveNameEventArgs.cs
- PageHandlerFactory.cs
- AnimationTimeline.cs
- TypeConverterHelper.cs
- _ListenerAsyncResult.cs
- SafeCryptContextHandle.cs
- TreeNode.cs
- ProfilePropertyNameValidator.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ConfigXmlCDataSection.cs
- X509Utils.cs
- SynthesizerStateChangedEventArgs.cs
- StylusPointProperties.cs
- WindowsGraphics2.cs
- QuaternionRotation3D.cs
- InsufficientMemoryException.cs
- Material.cs
- WindowsListViewItemCheckBox.cs
- AddressingProperty.cs
- SlotInfo.cs
- SoapInteropTypes.cs
- SmiSettersStream.cs
- webproxy.cs
- DataGridColumnCollection.cs
- DesignerWithHeader.cs
- JsonWriterDelegator.cs
- PerfService.cs
- RoleService.cs
- CustomGrammar.cs
- HtmlEmptyTagControlBuilder.cs
- QuotedPrintableStream.cs
- DesignerTransactionCloseEvent.cs
- FrameworkObject.cs
- TreeNodeConverter.cs
- DecimalKeyFrameCollection.cs
- DataControlCommands.cs
- UInt32Converter.cs
- XmlSiteMapProvider.cs
- RegexParser.cs
- StaticFileHandler.cs
- TableDetailsCollection.cs
- DbMetaDataCollectionNames.cs
- SMSvcHost.cs
- TemplateGroupCollection.cs
- DropShadowBitmapEffect.cs
- TransformConverter.cs
- PlainXmlWriter.cs
- CapabilitiesState.cs
- SoapAttributeOverrides.cs
- XhtmlBasicImageAdapter.cs
- DataSourceHelper.cs
- WinFormsUtils.cs
- PersonalizationProviderCollection.cs
- DataBoundLiteralControl.cs
- IsolatedStoragePermission.cs
- EventLogPermissionAttribute.cs
- EdmFunction.cs
- OdbcCommandBuilder.cs
- DependencyPropertyChangedEventArgs.cs
- _AuthenticationState.cs
- VisualBasicHelper.cs
- SerializationStore.cs
- TagPrefixInfo.cs
- SmiMetaData.cs
- AnnotationObservableCollection.cs
- DispatcherObject.cs
- DbConnectionPool.cs
- ForeignConstraint.cs
- WindowsListViewItem.cs
- SecurityTokenAttachmentMode.cs
- XmlILOptimizerVisitor.cs
- RadioButton.cs
- NameScope.cs
- GridViewRowPresenterBase.cs
- TemplatedWizardStep.cs
- StringUtil.cs
- FlowNode.cs
- GlyphRunDrawing.cs
- WhitespaceSignificantCollectionAttribute.cs
- figurelengthconverter.cs
- DataTableCollection.cs
- ExecutionEngineException.cs
- TextHidden.cs
- SerializationObjectManager.cs
- ErrorCodes.cs
- ObjectViewEntityCollectionData.cs
- TypedElement.cs
- RelatedPropertyManager.cs
- CardSpaceShim.cs