Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpDebugHandler.cs
- ObjectQuery_EntitySqlExtensions.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ByteKeyFrameCollection.cs
- SeverityFilter.cs
- ScalarRestriction.cs
- HttpInputStream.cs
- Image.cs
- Bitmap.cs
- SchemaNames.cs
- ExpandedWrapper.cs
- DataSysAttribute.cs
- ImageSource.cs
- DateTimeConverter.cs
- WindowsGraphicsCacheManager.cs
- dataobject.cs
- TextRunCacheImp.cs
- UInt16Converter.cs
- HttpListenerRequest.cs
- XPathNodeList.cs
- DetailsViewModeEventArgs.cs
- Selection.cs
- FilteredXmlReader.cs
- SqlClientWrapperSmiStreamChars.cs
- Event.cs
- LinqDataSourceView.cs
- loginstatus.cs
- Image.cs
- ButtonFieldBase.cs
- GradientStop.cs
- ISAPIWorkerRequest.cs
- StrongTypingException.cs
- AssemblyInfo.cs
- PreservationFileWriter.cs
- ProcessingInstructionAction.cs
- ExtendedPropertyInfo.cs
- HttpModuleActionCollection.cs
- HtmlProps.cs
- CreateSequence.cs
- KeyboardDevice.cs
- ToolZone.cs
- TabRenderer.cs
- SQLByteStorage.cs
- EntityDataSourceDesignerHelper.cs
- IncrementalReadDecoders.cs
- UnlockInstanceCommand.cs
- BaseUriWithWildcard.cs
- BitSet.cs
- EntitySetDataBindingList.cs
- StyleModeStack.cs
- SafeHandles.cs
- EdmPropertyAttribute.cs
- MailWebEventProvider.cs
- UnicastIPAddressInformationCollection.cs
- RepeaterItemEventArgs.cs
- ReferencedAssemblyResolver.cs
- GZipDecoder.cs
- HttpResponseInternalBase.cs
- OdbcInfoMessageEvent.cs
- entityreference_tresulttype.cs
- DispatcherSynchronizationContext.cs
- InternalConfigHost.cs
- VisualStyleRenderer.cs
- InvalidDataException.cs
- Util.cs
- TextSimpleMarkerProperties.cs
- ExpressionConverter.cs
- SendMessageRecord.cs
- EntryPointNotFoundException.cs
- Console.cs
- Vector3DKeyFrameCollection.cs
- XamlWriterExtensions.cs
- SHA1CryptoServiceProvider.cs
- ServicePoint.cs
- WSFederationHttpSecurity.cs
- TcpTransportSecurityElement.cs
- TextModifierScope.cs
- DynamicUpdateCommand.cs
- ReadingWritingEntityEventArgs.cs
- ErrorFormatterPage.cs
- FilteredReadOnlyMetadataCollection.cs
- ToolBarButtonClickEvent.cs
- BindingBase.cs
- AlternationConverter.cs
- CultureTable.cs
- InputLanguageManager.cs
- InvokePatternIdentifiers.cs
- ServiceManager.cs
- RewritingPass.cs
- CachedBitmap.cs
- ResourceSetExpression.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- SystemResources.cs
- XmlWrappingReader.cs
- EditorZone.cs
- TypeName.cs
- ProcessModuleCollection.cs
- FileDetails.cs
- log.cs
- ParseElement.cs