共用方式為


AnimatedGlobalNavigationButtonVisualSource 類別

定義

表示可做為動畫圖標來源之導覽功能表的動畫。

public ref class AnimatedGlobalNavigationButtonVisualSource sealed : IAnimatedVisualSource2
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.XamlContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AnimatedGlobalNavigationButtonVisualSource final : IAnimatedVisualSource2
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.XamlContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AnimatedGlobalNavigationButtonVisualSource : IAnimatedVisualSource2
Public NotInheritable Class AnimatedGlobalNavigationButtonVisualSource
Implements IAnimatedVisualSource2
繼承
Object Platform::Object IInspectable AnimatedGlobalNavigationButtonVisualSource
屬性
實作

備註

這可以做為 的來源AnimatedIcon 。 NavigationView 控制項會使用它

支援適用于 AnimatedIcon.StateIAnimatedVisualSource2.Markers

  • NormalToPointerOver
  • NormalToPressed
  • PointerOverToNormal
  • PointerOverToPressed
  • PressedToNormal
  • PressedToPointerOver

建構函式

AnimatedGlobalNavigationButtonVisualSource()

初始化 AnimatedGlobalNavigationButtonVisualSource 類別的新實例。

屬性

Markers

提供從標記名稱到 AnimationedIcon動畫視覺效果中播放位置的對應。

方法

SetColorProperty(String, Color)

設定 AnimatedIcon之動畫視覺效果的色彩。

TryCreateAnimatedVisual(Compositor, Object)

嘗試為AnimatedIcon建立 物件的實例 AnimatedGlobalNavigationButtonVisualSource

適用於

另請參閱