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
- DesignTimeResourceProviderFactoryAttribute.cs
- EventArgs.cs
- GridViewColumnHeaderAutomationPeer.cs
- ReflectionPermission.cs
- SessionViewState.cs
- RangeValidator.cs
- VideoDrawing.cs
- Constants.cs
- XmlChildNodes.cs
- CaseInsensitiveComparer.cs
- Encoder.cs
- EndpointFilterProvider.cs
- DbConnectionFactory.cs
- BitmapEffectInputData.cs
- CheckBoxAutomationPeer.cs
- DataStreamFromComStream.cs
- BamlRecords.cs
- SelectedDatesCollection.cs
- HtmlCalendarAdapter.cs
- CodeObject.cs
- FocusTracker.cs
- DataGridViewButtonColumn.cs
- SharedDp.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- OleDbErrorCollection.cs
- StylesEditorDialog.cs
- SHA384Managed.cs
- PerformanceCounterManager.cs
- PrintPreviewGraphics.cs
- QueryOutputWriter.cs
- XmlChoiceIdentifierAttribute.cs
- DataGridCommandEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- DataGridViewElement.cs
- CompilerHelpers.cs
- UIPropertyMetadata.cs
- DataServiceQueryException.cs
- ValidationEventArgs.cs
- ReflectionUtil.cs
- MemberInfoSerializationHolder.cs
- WebDescriptionAttribute.cs
- SimpleTextLine.cs
- SerializationInfoEnumerator.cs
- XComponentModel.cs
- Model3DGroup.cs
- ListBoxItemAutomationPeer.cs
- ContextInformation.cs
- XmlSchemaObjectCollection.cs
- DefaultAssemblyResolver.cs
- DecimalAnimation.cs
- ListenerBinder.cs
- XPathSingletonIterator.cs
- GridViewRowCollection.cs
- DataKey.cs
- Int64Storage.cs
- RadioButtonFlatAdapter.cs
- XmlSchemaAttributeGroupRef.cs
- SmtpNtlmAuthenticationModule.cs
- IdnElement.cs
- AtomPub10ServiceDocumentFormatter.cs
- ObjectCloneHelper.cs
- GlobalProxySelection.cs
- SQLMoneyStorage.cs
- DataGridViewCellFormattingEventArgs.cs
- OdbcInfoMessageEvent.cs
- KeyManager.cs
- FigureParagraph.cs
- TranslateTransform3D.cs
- CodeAttributeArgument.cs
- BeginSelectCardRequest.cs
- ContentHostHelper.cs
- CodeSnippetCompileUnit.cs
- RichTextBox.cs
- InputManager.cs
- QilXmlReader.cs
- DocumentOrderQuery.cs
- TypePropertyEditor.cs
- XsdBuilder.cs
- DesignerAutoFormatStyle.cs
- PersistenceMetadataNamespace.cs
- PublisherMembershipCondition.cs
- LoginStatusDesigner.cs
- ParagraphResult.cs
- StateMachineDesignerPaint.cs
- HttpApplicationFactory.cs
- TextTrailingWordEllipsis.cs
- DesignerOptionService.cs
- MonitorWrapper.cs
- LiteralSubsegment.cs
- DataGridRow.cs
- IMembershipProvider.cs
- MSG.cs
- BulletedList.cs
- util.cs
- ListParagraph.cs
- AttributeInfo.cs
- ParameterModifier.cs
- BasicCommandTreeVisitor.cs
- ListDataBindEventArgs.cs
- WebBrowserSiteBase.cs