NavigationViewItemPresenter Klasse

Definition

Stellt die visuellen Elemente eines NavigationViewItem dar.

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

/// [Microsoft.UI.Xaml.MUXContractProperty(version=7)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class NavigationViewItemPresenter : ContentControl
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=7)]
class NavigationViewItemPresenter : ContentControl
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class NavigationViewItemPresenter : ContentControl
[Microsoft.UI.Xaml.MUXContractProperty(version=7)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public class NavigationViewItemPresenter : ContentControl
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=7)]
public class NavigationViewItemPresenter : ContentControl
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class NavigationViewItemPresenter : ContentControl
Public Class NavigationViewItemPresenter
Inherits ContentControl
Vererbung
NavigationViewItemPresenter
Attribute
Microsoft.UI.Xaml.MUXContractPropertyAttribute MarshalingBehaviorAttribute ThreadingAttribute VersionAttribute Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute ContractVersionAttribute

Beispiele

Beispiele für WinUI-Features und -Steuerelemente finden Sie in der XAML-Beispiel-Katalog-Beispiel-App .

Wenn die XAML-Steuerelementkatalog-App installiert ist, öffnen Sie die App, um die Steuerelemente in Aktion anzuzeigen.

Wenn die XAML-Steuerelementekatalog-App nicht installiert ist, rufen Sie die WinUI 2.x-Version aus dem Microsoft Store ab.

Sie können auch den XAML-Steuerelementkatalog-Quellcode von GitHub anzeigen, klonen und erstellen (wechseln Sie zum WinUI 3 Preview Branch für WinUI 3 Preview-Steuerelemente und -Features).

Konstruktoren

NavigationViewItemPresenter()

Initialisiert eine neue Instanz der NavigationViewItemPresenter-Klasse .

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

Eigenschaften

Icon

Ruft das Symbol in einem NavigationView-Element ab oder legt es fest.

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

IconProperty

Identifiziert die Icon-Abhängigkeitseigenschaft.

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

InfoBadge

Stellt die visuellen Elemente eines NavigationViewItem dar.

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

InfoBadgeProperty

Stellt die visuellen Elemente eines NavigationViewItem dar.

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

TemplateSettings

Ruft ein Objekt ab, das berechnete Werte bereitstellt, auf die beim Definieren von Vorlagen für ein NavigationViewItemPresenter-Steuerelement als {TemplateBinding}-Markuperweiterungsquellen verwiesen werden kann.

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

TemplateSettingsProperty

Identifiziert die TemplateSettings-Abhängigkeitseigenschaft .

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

Gilt für: