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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Helper.cs
- BinaryConverter.cs
- TypeTypeConverter.cs
- TextElementEditingBehaviorAttribute.cs
- StaticResourceExtension.cs
- XmlQueryRuntime.cs
- ToolStripHighContrastRenderer.cs
- Stack.cs
- JournalEntryListConverter.cs
- HyperLink.cs
- DataErrorValidationRule.cs
- Exception.cs
- SessionEndedEventArgs.cs
- DiagnosticSection.cs
- ValidatedControlConverter.cs
- DataContext.cs
- TemplateKeyConverter.cs
- CryptoApi.cs
- AdornedElementPlaceholder.cs
- ConfigsHelper.cs
- BadImageFormatException.cs
- MessageBox.cs
- AddingNewEventArgs.cs
- AttributeAction.cs
- WebServiceMethodData.cs
- XmlSchemaCompilationSettings.cs
- configsystem.cs
- HandoffBehavior.cs
- WebPartConnectionsEventArgs.cs
- DuplexSecurityProtocolFactory.cs
- TreeViewImageKeyConverter.cs
- DynamicObject.cs
- WorkflowRuntimeElement.cs
- ExportFileRequest.cs
- MobileControlDesigner.cs
- TextTreeUndo.cs
- WebBrowserNavigatingEventHandler.cs
- MemoryPressure.cs
- MultipleViewPatternIdentifiers.cs
- SiteIdentityPermission.cs
- ConfigurationElementProperty.cs
- Version.cs
- ExpandCollapseProviderWrapper.cs
- UdpReplyToBehavior.cs
- Baml2006ReaderSettings.cs
- UnconditionalPolicy.cs
- CodeExpressionStatement.cs
- EventSinkActivity.cs
- ItemDragEvent.cs
- TcpProcessProtocolHandler.cs
- VectorCollectionValueSerializer.cs
- OletxDependentTransaction.cs
- PolyBezierSegment.cs
- LoginViewDesigner.cs
- DetailsView.cs
- CursorConverter.cs
- DataControlExtensions.cs
- PersistenceProvider.cs
- TextEffect.cs
- GridViewRowEventArgs.cs
- FontFamilyConverter.cs
- ResourcesChangeInfo.cs
- DefaultParameterValueAttribute.cs
- TextCompositionManager.cs
- Focus.cs
- SchemeSettingElementCollection.cs
- SelectionEditingBehavior.cs
- CancellationTokenSource.cs
- Win32MouseDevice.cs
- StringUtil.cs
- WorkflowInstanceProvider.cs
- BadImageFormatException.cs
- indexingfiltermarshaler.cs
- StaticFileHandler.cs
- SchemaCollectionPreprocessor.cs
- EntityClientCacheEntry.cs
- DesignSurfaceServiceContainer.cs
- ValueQuery.cs
- DataGridViewImageColumn.cs
- XmlSchemaDocumentation.cs
- InstanceStore.cs
- XmlHelper.cs
- VirtualizedItemPattern.cs
- RegexFCD.cs
- Application.cs
- _SSPIWrapper.cs
- BackgroundFormatInfo.cs
- DataGridColumnStyleMappingNameEditor.cs
- Hash.cs
- EntityTemplateFactory.cs
- ByteAnimation.cs
- PrimitiveCodeDomSerializer.cs
- IndexedString.cs
- BamlResourceSerializer.cs
- ValidationError.cs
- MemberRelationshipService.cs
- PrincipalPermission.cs
- EmptyStringExpandableObjectConverter.cs
- SerializationSectionGroup.cs
- DataTable.cs