Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableItemPattern.cs
- ExtentJoinTreeNode.cs
- WsdlExporter.cs
- EventHandlersStore.cs
- JpegBitmapEncoder.cs
- Attribute.cs
- AssociationSetEnd.cs
- JpegBitmapEncoder.cs
- COM2Properties.cs
- ActivityValidator.cs
- HtmlInputReset.cs
- SafeNativeMethods.cs
- GifBitmapEncoder.cs
- InternalsVisibleToAttribute.cs
- unsafenativemethodstextservices.cs
- DrawingDrawingContext.cs
- SqlConnectionString.cs
- Dictionary.cs
- TextFormatter.cs
- ApplyTemplatesAction.cs
- PriorityItem.cs
- ColorIndependentAnimationStorage.cs
- ProvideValueServiceProvider.cs
- Point3D.cs
- RoleGroupCollection.cs
- PropertyBuilder.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ContainerVisual.cs
- MatchingStyle.cs
- AssociationTypeEmitter.cs
- PageFunction.cs
- ImageCodecInfo.cs
- HtmlInputFile.cs
- BezierSegment.cs
- CorrelationResolver.cs
- StoreItemCollection.cs
- RelatedEnd.cs
- DependencyObjectProvider.cs
- ScrollChrome.cs
- DataMisalignedException.cs
- EventRoute.cs
- HtmlControlPersistable.cs
- TreeView.cs
- WebPartAddingEventArgs.cs
- initElementDictionary.cs
- MouseEvent.cs
- PageAsyncTask.cs
- TimeSpanValidatorAttribute.cs
- _CacheStreams.cs
- ArrayMergeHelper.cs
- DataTableMappingCollection.cs
- EntityEntry.cs
- XmlSecureResolver.cs
- ValidateNames.cs
- DCSafeHandle.cs
- WorkflowServiceHost.cs
- InvalidEnumArgumentException.cs
- ImageSourceConverter.cs
- DataGridViewColumnDesigner.cs
- KeysConverter.cs
- GrabHandleGlyph.cs
- TextInfo.cs
- ChtmlTextWriter.cs
- WebPartChrome.cs
- FrameAutomationPeer.cs
- Attributes.cs
- CompiledQuery.cs
- FormViewDeleteEventArgs.cs
- OracleConnectionString.cs
- ChangeBlockUndoRecord.cs
- ButtonChrome.cs
- NavigationWindow.cs
- StyleModeStack.cs
- IncrementalReadDecoders.cs
- HttpInputStream.cs
- RelatedImageListAttribute.cs
- SpellerStatusTable.cs
- CfgRule.cs
- SessionPageStateSection.cs
- XmlAttributes.cs
- UnsafeNativeMethods.cs
- FloatSumAggregationOperator.cs
- AdjustableArrowCap.cs
- SingleKeyFrameCollection.cs
- Native.cs
- LinkDescriptor.cs
- FileSystemEventArgs.cs
- TailPinnedEventArgs.cs
- Application.cs
- AdCreatedEventArgs.cs
- wgx_sdk_version.cs
- BaseTemplateParser.cs
- IisTraceWebEventProvider.cs
- WrappedIUnknown.cs
- ProvidersHelper.cs
- EntityContainerRelationshipSetEnd.cs
- WebEncodingValidator.cs
- DecimalAverageAggregationOperator.cs
- UnescapedXmlDiagnosticData.cs
- GeometryValueSerializer.cs