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
- SettingsAttributeDictionary.cs
- XmlDataProvider.cs
- Binding.cs
- Trace.cs
- QueryOutputWriter.cs
- GridViewAutomationPeer.cs
- DataObjectPastingEventArgs.cs
- TiffBitmapEncoder.cs
- ImageSource.cs
- XmlRootAttribute.cs
- StringComparer.cs
- dbenumerator.cs
- PageContent.cs
- DefaultValueTypeConverter.cs
- FormatSettings.cs
- RenderDataDrawingContext.cs
- PopOutPanel.cs
- ReflectionPermission.cs
- StylusPoint.cs
- MouseGestureValueSerializer.cs
- MatrixTransform3D.cs
- StateFinalizationActivity.cs
- XamlReaderHelper.cs
- CommonRemoteMemoryBlock.cs
- XmlDeclaration.cs
- RecordManager.cs
- PanelStyle.cs
- UnSafeCharBuffer.cs
- SecurityPermission.cs
- ErrorWebPart.cs
- ConnectionManagementSection.cs
- MouseGesture.cs
- CalculatedColumn.cs
- Function.cs
- FixedDocument.cs
- translator.cs
- GroupItemAutomationPeer.cs
- CommandHelpers.cs
- SafeFileMappingHandle.cs
- IsolatedStoragePermission.cs
- ContextQuery.cs
- ColorAnimationBase.cs
- DataGridSortingEventArgs.cs
- TextRangeProviderWrapper.cs
- ParsedAttributeCollection.cs
- Point3DAnimation.cs
- path.cs
- NamedPipeProcessProtocolHandler.cs
- MultipleViewPattern.cs
- IResourceProvider.cs
- ECDiffieHellmanPublicKey.cs
- CodeAttachEventStatement.cs
- Wow64ConfigurationLoader.cs
- Vector3DAnimationBase.cs
- XmlCollation.cs
- CodeTypeOfExpression.cs
- OrthographicCamera.cs
- HttpCapabilitiesSectionHandler.cs
- SerializationObjectManager.cs
- InternalConfigHost.cs
- TypeProvider.cs
- ComponentEvent.cs
- BrowserDefinition.cs
- StyleXamlParser.cs
- SQLBinary.cs
- SimpleTextLine.cs
- MouseButton.cs
- FixedBufferAttribute.cs
- FragmentQuery.cs
- PolygonHotSpot.cs
- ValueTable.cs
- ImageMapEventArgs.cs
- OleDbConnectionInternal.cs
- NextPreviousPagerField.cs
- RuntimeHandles.cs
- UntrustedRecipientException.cs
- BamlLocalizabilityResolver.cs
- DataGridViewColumn.cs
- TrackingLocationCollection.cs
- StringStorage.cs
- ObjectQuery.cs
- ConfigPathUtility.cs
- SafeHandle.cs
- MissingManifestResourceException.cs
- ConfigurationElementProperty.cs
- HwndKeyboardInputProvider.cs
- QilParameter.cs
- BuildProviderCollection.cs
- TableCell.cs
- ContainerSelectorActiveEvent.cs
- HtmlAnchor.cs
- SamlAttributeStatement.cs
- OleDragDropHandler.cs
- Stylesheet.cs
- RequestCachingSection.cs
- DockAndAnchorLayout.cs
- HtmlString.cs
- DoubleCollectionValueSerializer.cs
- HealthMonitoringSectionHelper.cs
- TableColumn.cs