Share via


IndependentlyAnimatableAttribute Classe

Définition

Non destiné à une utilisation générale. Cet attribut est utilisé par des outils de conception tels que Microsoft Visual Studio. Microsoft Visual Studio interprète l’attribut et informe les développeurs d’applications de la façon dont une combinaison animation-propriété fonctionnera en ce qui concerne les performances et les 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
Héritage
IndependentlyAnimatableAttribute
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Remarques

Les animations de propriétés peuvent être activées ou désactivées par défaut. Le cas qui s’applique est déterminé à la fois par le type d’animation elle-même (et ses sous-propriétés) et par la propriété spécifique animée. Les propriétés de dépendance Windows Runtime principales sont annotées avec des métadonnées indiquant si la propriété est animatable indépendamment. Ces informations sont également signalées par des outils de conception tels que Microsoft Visual Studio afin de fournir aux développeurs d’applications des informations sur le fonctionnement d’une animation donnée et sur son exécution.

ConditionallyIndependentlyAnimatableAttribute est appliqué aux types d’animation de sous-propriété qui peuvent être indépendamment animatables en fonction de la propriété à laquelle le type animé est appliqué. En revanche, IndependentlyAnimatableAttribute est appliqué aux propriétés spécifiques qui sont réellement animatables indépendamment.

Constructeurs

IndependentlyAnimatableAttribute()

Initialise une nouvelle instance de la classe FadeOutThemeAnimation.

S’applique à

Voir aussi