Sdílet prostřednictvím


IndependentlyAnimatableAttribute Class

Definition

Not intended for general use. This attribute is used by design tools such as Microsoft Visual Studio. Microsoft Visual Studio interprets the attribute and informs app developers how an animation-property combination will work as far as performance and restrictions.

public ref class IndependentlyAnimatableAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Property)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class IndependentlyAnimatableAttribute final : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Property)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("independentlyanimatable")]
class IndependentlyAnimatableAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Property)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class IndependentlyAnimatableAttribute : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Property)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("independentlyanimatable")]
public sealed class IndependentlyAnimatableAttribute : Attribute
Public NotInheritable Class IndependentlyAnimatableAttribute
Inherits Attribute
Inheritance
IndependentlyAnimatableAttribute
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Animations of properties can either be enabled or disabled by default. Which case applies is determined by both the type of animation itself (and its subproperties) and the specific property being animated. Core Windows Runtime dependency properties are annotated with metadata describing whether the property is independently animatable. This information is also reported by design tools such as Microsoft Visual Studio in order to provide app developers with info about how a given animation will work and whether it's permitted to run at all.

ConditionallyIndependentlyAnimatableAttribute is applied to sub-property animation types that might be independently animatable depending on which property the animated type is applied to. In contrast, IndependentlyAnimatableAttribute is applied to those specific properties that really are independently animatable.

Constructors

IndependentlyAnimatableAttribute()

Initializes a new instance of the FadeOutThemeAnimation class.

Applies to

See also