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
- X509Certificate.cs
- PropertyExpression.cs
- WebCategoryAttribute.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- EnvelopedPkcs7.cs
- RSAPKCS1SignatureFormatter.cs
- TextBoxLine.cs
- BindingCompleteEventArgs.cs
- ParserStreamGeometryContext.cs
- XmlElementAttributes.cs
- EntitySet.cs
- DbBuffer.cs
- WindowsTitleBar.cs
- OrderByQueryOptionExpression.cs
- DesignConnection.cs
- ReferenceSchema.cs
- IdentifierCreationService.cs
- XmlSchemaValidationException.cs
- StylusShape.cs
- basecomparevalidator.cs
- ManagementNamedValueCollection.cs
- PropertyItem.cs
- XmlCodeExporter.cs
- securitymgrsite.cs
- TypeElementCollection.cs
- MessagePropertyDescriptionCollection.cs
- DiffuseMaterial.cs
- ResolvedKeyFrameEntry.cs
- ScrollBar.cs
- Win32KeyboardDevice.cs
- ConnectionStringSettingsCollection.cs
- CircleHotSpot.cs
- HttpModuleCollection.cs
- RegistryPermission.cs
- shaperfactoryquerycachekey.cs
- Stack.cs
- WebPartDisplayModeEventArgs.cs
- RelationshipEndCollection.cs
- AccessDataSource.cs
- MsdtcClusterUtils.cs
- StrongNamePublicKeyBlob.cs
- GreenMethods.cs
- Size3D.cs
- BulletDecorator.cs
- SafeNativeMethods.cs
- AnnotationHighlightLayer.cs
- JoinGraph.cs
- PlatformCulture.cs
- TransformCryptoHandle.cs
- FontSourceCollection.cs
- ResourceExpression.cs
- HelloMessageApril2005.cs
- HandleExceptionArgs.cs
- MapPathBasedVirtualPathProvider.cs
- NativeMethods.cs
- UserControlBuildProvider.cs
- SmuggledIUnknown.cs
- DataContext.cs
- AmbientLight.cs
- RegistryConfigurationProvider.cs
- SqlProviderManifest.cs
- AspNetCompatibilityRequirementsAttribute.cs
- _DomainName.cs
- RegexParser.cs
- EventManager.cs
- EntityDataSourceWrapper.cs
- LineServices.cs
- ColumnProvider.cs
- FileRecordSequenceCompletedAsyncResult.cs
- BasicHttpMessageCredentialType.cs
- IntermediatePolicyValidator.cs
- ToolBarButtonClickEvent.cs
- ExpressionBuilderContext.cs
- TemplateBamlRecordReader.cs
- ActivityTypeCodeDomSerializer.cs
- Binding.cs
- SqlOuterApplyReducer.cs
- TableLayout.cs
- TdsEnums.cs
- HttpModuleAction.cs
- SpellerHighlightLayer.cs
- GraphicsPath.cs
- HttpClientCertificate.cs
- BindingMemberInfo.cs
- CodeMemberEvent.cs
- ClientTargetCollection.cs
- PrimaryKeyTypeConverter.cs
- CellIdBoolean.cs
- OleDbTransaction.cs
- COM2ColorConverter.cs
- Soap.cs
- Part.cs
- SettingsPropertyValueCollection.cs
- RegisteredExpandoAttribute.cs
- HttpException.cs
- TablePatternIdentifiers.cs
- MenuEventArgs.cs
- BasicAsyncResult.cs
- mediaclock.cs
- AddInProcess.cs