Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AttachedPropertyMethodSelector.cs
- DiscoveryMessageSequenceGenerator.cs
- CallbackHandler.cs
- PeerIPHelper.cs
- ReturnEventArgs.cs
- TraceRecord.cs
- XmlSchemaComplexType.cs
- RectValueSerializer.cs
- TextParagraphProperties.cs
- ConstantSlot.cs
- ToolStripOverflowButton.cs
- StreamWriter.cs
- GraphicsContext.cs
- Encoder.cs
- CommandHelpers.cs
- EntityStoreSchemaGenerator.cs
- MsmqInputChannelListener.cs
- _HelperAsyncResults.cs
- Decoder.cs
- DataGridViewColumn.cs
- ExeContext.cs
- HandlerMappingMemo.cs
- InheritedPropertyChangedEventArgs.cs
- hresults.cs
- DataTableMappingCollection.cs
- SqlDataSourceCommandParser.cs
- EndpointDispatcher.cs
- HitTestParameters3D.cs
- LinkedDataMemberFieldEditor.cs
- AffineTransform3D.cs
- PointCollectionValueSerializer.cs
- CompilerCollection.cs
- GenericWebPart.cs
- InternalMappingException.cs
- RoutedEventArgs.cs
- OptionalRstParameters.cs
- AutoResetEvent.cs
- ReachPageContentSerializer.cs
- WorkflowHostingResponseContext.cs
- ArrowControl.xaml.cs
- SystemTcpStatistics.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- OracleCommandBuilder.cs
- MouseBinding.cs
- BrowserCapabilitiesFactoryBase.cs
- ExtensibleClassFactory.cs
- SqlCaseSimplifier.cs
- EncoderParameters.cs
- QilList.cs
- Ref.cs
- SecureUICommand.cs
- CompilationPass2Task.cs
- DataGridParentRows.cs
- Menu.cs
- DragDeltaEventArgs.cs
- SchemaImporterExtension.cs
- WsdlHelpGeneratorElement.cs
- InfoCardTraceRecord.cs
- DockAndAnchorLayout.cs
- DesignSurfaceEvent.cs
- BridgeDataReader.cs
- XmlSchemaParticle.cs
- ObjectContextServiceProvider.cs
- FigureParagraph.cs
- ToolStripGripRenderEventArgs.cs
- FixedNode.cs
- DesignerRegionMouseEventArgs.cs
- XmlSignificantWhitespace.cs
- StringAnimationUsingKeyFrames.cs
- PointCollectionConverter.cs
- LiteralControl.cs
- SqlMethodTransformer.cs
- Shared.cs
- TreeNodeConverter.cs
- WmpBitmapDecoder.cs
- HyperLinkStyle.cs
- HttpCacheVary.cs
- EtwTrace.cs
- EventBuilder.cs
- ComIntegrationManifestGenerator.cs
- SafeNativeMethodsOther.cs
- SRef.cs
- WebBrowserDocumentCompletedEventHandler.cs
- QilName.cs
- Int64Converter.cs
- BaseDataBoundControl.cs
- GeneratedContractType.cs
- DbProviderFactoriesConfigurationHandler.cs
- ListViewSelectEventArgs.cs
- CharacterMetrics.cs
- DataColumnChangeEvent.cs
- MemoryFailPoint.cs
- ValidationErrorEventArgs.cs
- DropSource.cs
- IsolatedStorageException.cs
- ObjectKeyFrameCollection.cs
- OdbcException.cs
- KeyGesture.cs
- RequestTimeoutManager.cs
- DesignBindingValueUIHandler.cs