AnimatedGlobalNavigationButtonVisualSource Klasse

Definition

Stellt eine Animation für ein Navigationsmenü dar, die als animierte Symbolquelle verwendet werden kann.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI in der Windows App SDK siehe Windows App SDK Namespaces).

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
Vererbung
Object Platform::Object IInspectable AnimatedGlobalNavigationButtonVisualSource
Attribute
Implementiert

Hinweise

Dies kann als Quelle eines AnimatedIconverwendet werden. Es wird vom NavigationView-Steuerelement verwendet.

Unterstützt IAnimatedVisualSource2.Markers für AnimatedIcon.State:

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

Konstruktoren

AnimatedGlobalNavigationButtonVisualSource()

Initialisiert eine neue Instanz der AnimatedGlobalNavigationButtonVisualSource-Klasse .

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI in der Windows App SDK siehe Windows App SDK Namespaces).

Eigenschaften

Markers

Stellt eine Zuordnung von Markernamen zu Wiedergabepositionen im animierten Visual für ein AnimatedIcon bereit.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI in der Windows App SDK siehe Windows App SDK Namespaces).

Methoden

SetColorProperty(String, Color)

Legt die Farbe des animierten Visuals für ein AnimatedIcon fest.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI in der Windows App SDK siehe Windows App SDK Namespaces).

TryCreateAnimatedVisual(Compositor, Object)

Versucht, eine Instanz eines Objekts für ein AnimatedGlobalNavigationButtonVisualSourceAnimatedIcon zu erstellen.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI in der Windows App SDK siehe Windows App SDK Namespaces).

Gilt für:

Weitere Informationen