NavigationView.IsTitleBarAutoPaddingEnabled 屬性

定義

取得或設定值,這個值表示搭配自訂標題列使用時,頂端邊框間距是否新增至導覽檢視的標頭。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property bool IsTitleBarAutoPaddingEnabled { bool get(); void set(bool value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsTitleBarAutoPaddingEnabled();

void IsTitleBarAutoPaddingEnabled(bool value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool IsTitleBarAutoPaddingEnabled { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
Public Property IsTitleBarAutoPaddingEnabled As Boolean

屬性值

Boolean

bool

如果啟用自動填補,則為true;否則為false。 預設值為 True

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

備註

設定此屬性以啟用或停用與自訂視窗標題列搭配使用時,自動套用至導覽檢視標題區頂端的邊框間距。 如需詳細資訊 ,請參閱導覽檢視

適用於