IndependentlyAnimatableAttribute 類別

定義

不適用於一般用途。 此屬性是由設計工具使用,例如 Microsoft Visual Studio。 Microsoft Visual Studio 會解譯 屬性,並通知應用程式開發人員動畫屬性組合在效能和限制上如何運作。

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
繼承
IndependentlyAnimatableAttribute
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

根據預設,屬性的動畫可以啟用或停用。 套用的案例取決於動畫本身的類型 (及其子屬性) ,以及要產生動畫效果的特定屬性。 核心Windows 執行階段相依性屬性會標注中繼資料,描述屬性是否可獨立產生動畫效果。 這項資訊也會由 Microsoft Visual Studio 等設計工具報告,以便為應用程式開發人員提供指定動畫運作方式的相關資訊,以及是否完全允許執行。

ConditionallyIndependentlyAnimatableAttribute 會套用至子屬性動畫類型,根據套用動畫類型的屬性而定,這些類型可能會獨立產生動畫效果。 相反地,IndependentlyAnimatableAttribute 會套用至真正可獨立產生動畫效果的特定屬性。

建構函式

IndependentlyAnimatableAttribute()

初始化 FadeOutThemeAnimation 類別的新實例。

適用於

另請參閱