NavigationView.IsTitleBarAutoPaddingEnabled プロパティ

定義

カスタム タイトル バーと共に使用する場合に、ナビゲーション ビューのヘッダーに上余白を追加するかどうかを示す値を取得または設定します。

public:
 property bool IsTitleBarAutoPaddingEnabled { bool get(); void set(bool value); };
/// [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")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsTitleBarAutoPaddingEnabled();

void IsTitleBarAutoPaddingEnabled(bool value);
public bool IsTitleBarAutoPaddingEnabled { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
[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; }
var boolean = navigationView.isTitleBarAutoPaddingEnabled;
navigationView.isTitleBarAutoPaddingEnabled = boolean;
Public Property IsTitleBarAutoPaddingEnabled As Boolean

プロパティ値

Boolean

bool

自動 埋め込みが有効な場合は true。それ以外の場合は false。 既定値は trueです。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

注釈

このプロパティを設定すると、ナビゲーション ビューのヘッダー領域の上部に自動的に適用される埋め込みを有効または無効にできます(カスタム ウィンドウ タイトル バーで使用する場合)。 詳細については、「 ナビゲーション ビュー 」を参照してください。

適用対象