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
- ThaiBuddhistCalendar.cs
- WebPartAddingEventArgs.cs
- ConfigurationElementCollection.cs
- BezierSegment.cs
- Collection.cs
- DbConnectionHelper.cs
- CapabilitiesPattern.cs
- JoinElimination.cs
- DataContractSerializer.cs
- __ComObject.cs
- UserPreferenceChangingEventArgs.cs
- XmlElementAttributes.cs
- ChtmlSelectionListAdapter.cs
- Object.cs
- SecurityListenerSettingsLifetimeManager.cs
- AttachmentService.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EventPropertyMap.cs
- DataGridViewImageCell.cs
- LayoutSettings.cs
- IdnMapping.cs
- ColumnMapCopier.cs
- Listbox.cs
- Clause.cs
- ConnectionManagementElement.cs
- Point4D.cs
- CommonDialog.cs
- AnnotationHighlightLayer.cs
- XamlSerializerUtil.cs
- CellLabel.cs
- BadImageFormatException.cs
- TypefaceMap.cs
- PathData.cs
- MutexSecurity.cs
- FormView.cs
- IndentedTextWriter.cs
- DetailsViewDeleteEventArgs.cs
- ArgumentValueSerializer.cs
- nulltextnavigator.cs
- InputReport.cs
- XmlNodeReader.cs
- path.cs
- SchemaSetCompiler.cs
- SqlBulkCopyColumnMapping.cs
- CodeIndexerExpression.cs
- SystemUdpStatistics.cs
- RootBrowserWindowAutomationPeer.cs
- DataRow.cs
- NetCodeGroup.cs
- XmlCharCheckingWriter.cs
- ContainerVisual.cs
- EntityFunctions.cs
- TypedRowGenerator.cs
- TCPClient.cs
- WebPartDisplayModeCollection.cs
- ExpandedWrapper.cs
- DesignerDataParameter.cs
- ImmutableObjectAttribute.cs
- WebPartMenu.cs
- RuleInfoComparer.cs
- DataGridViewBand.cs
- PerfCounters.cs
- ScriptReference.cs
- _PooledStream.cs
- Evidence.cs
- PropertySegmentSerializer.cs
- Timer.cs
- TableAdapterManagerHelper.cs
- EdmComplexTypeAttribute.cs
- ExpressionBinding.cs
- UpdatePanel.cs
- ExtensionSimplifierMarkupObject.cs
- EdmType.cs
- Config.cs
- LineSegment.cs
- AutomationPropertyInfo.cs
- TypeUtil.cs
- StorageInfo.cs
- Registry.cs
- ProxyWebPartManager.cs
- AnimationLayer.cs
- MethodCallTranslator.cs
- DateTimeFormat.cs
- RestHandler.cs
- TabControl.cs
- FormParameter.cs
- CaseInsensitiveHashCodeProvider.cs
- CustomAssemblyResolver.cs
- Publisher.cs
- WorkflowRuntime.cs
- WebPartHelpVerb.cs
- TreeNodeStyle.cs
- AutomationPattern.cs
- SafeLocalAllocation.cs
- DataGridViewRowPrePaintEventArgs.cs
- ArrangedElementCollection.cs
- Matrix3D.cs
- BCryptSafeHandles.cs
- HyperLinkField.cs
- HttpListener.cs