NavigationViewTemplateSettings 類別

定義

提供在定義 NavigationView 範本時可參考為 TemplatedParent 來源的導出值。 不適用於一般用途。

/// [Microsoft.UI.Xaml.CustomAttributes.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 NavigationViewTemplateSettings : DependencyObject
/// [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 NavigationViewTemplateSettings : DependencyObject
[Microsoft.UI.Xaml.CustomAttributes.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 NavigationViewTemplateSettings : DependencyObject
[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 NavigationViewTemplateSettings : DependencyObject
Public Class NavigationViewTemplateSettings
Inherits DependencyObject
繼承
Object IInspectable DependencyObject NavigationViewTemplateSettings
屬性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute ThreadingAttribute VersionAttribute ContractVersionAttribute

範例

提示

如需詳細資訊、設計指引和程式碼範例,請參閱 NavigationView

WinUI 3 資源庫應用程式包含大部分 WinUI 3 控制件、特性和功能的互動式範例。 從 Microsoft Store 取得應用程式,或在 GitHub 上取得原始程式碼。

建構函式

NavigationViewTemplateSettings()

初始化 NavigationViewTemplateSettings 類別的新實例。

屬性

BackButtonVisibility

取得返回按鈕的可見度。

BackButtonVisibilityProperty

識別BackButtonVisibility相依性屬性。

Dispatcher

一律會在 Windows 應用程式 SDK 應用程式中傳null回。 請改用 DispatcherQueue

(繼承來源 DependencyObject)
DispatcherQueue

DispatcherQueue取得與這個 物件相關聯的 。 DispatcherQueue表示即使程式代碼是由非 UI 線程起始,也可以存取 DependencyObject UI 線程上的 。

(繼承來源 DependencyObject)
LeftPaneVisibility

取得左窗格的可見度。

LeftPaneVisibilityProperty

識別 LeftPaneVisibility 相依性屬性。

OpenPaneLength

min取得 OpenPaneLength 與視窗寬度之間的 。 這是開啟並完全展開時窗格寬度的計算值。

OpenPaneLengthProperty

識別 OpenPaneLength 相依性屬性。

OverflowButtonVisibility

取得溢位按鈕的可見性。

OverflowButtonVisibilityProperty

識別 OverflowButtonVisibility 相依性屬性。

PaneToggleButtonVisibility

取得窗格切換按鈕的可見性。

PaneToggleButtonVisibilityProperty

識別 PaneToggleButtonVisibility 相依性屬性。

PaneToggleButtonWidth

取得窗格的切換按鈕寬度。

PaneToggleButtonWidthProperty

識別 PaneToggleButtonWidth 相依性屬性。

SingleSelectionFollowsFocus

取得 SelectionFollowsFocus 值。

SingleSelectionFollowsFocusProperty

識別 SingleSelectionFollowsFocus 相依性屬性。

SmallerPaneToggleButtonWidth

取得較小窗格的切換按鈕寬度。

SmallerPaneToggleButtonWidthProperty

識別 SmallerPaneToggleButtonWidth 相依性屬性。

TopPadding

取得頂端窗格的填補值。

TopPaddingProperty

識別 TopPadding 相依性屬性。

TopPaneVisibility

取得頂端窗格的可見度。

TopPaneVisibilityProperty

識別 TopPaneVisibility 相依性屬性。

方法

ClearValue(DependencyProperty)

清除相依性屬性的本機值。

(繼承來源 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

傳回針對相依性屬性所建立的任何基底值,如果動畫未使用中,則會套用。

(繼承來源 DependencyObject)
GetValue(DependencyProperty)

DependencyObject 傳回相依性屬性的目前有效值。

(繼承來源 DependencyObject)
ReadLocalValue(DependencyProperty)

如果已設定本機值,則傳回相依性屬性的本機值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊通知函式,以接聽此 DependencyObject 實例上特定 DependencyProperty 的變更。

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyObject 上設定相依性屬性的本機值。

(繼承來源 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback 註冊的變更通知。

(繼承來源 DependencyObject)

適用於