Udostępnij za pośrednictwem


CoreApplicationViewTitleBar.ExtendViewIntoTitleBar Property

Definition

Gets or sets a value that specifies whether this title bar should replace the default window title bar.

public:
 property bool ExtendViewIntoTitleBar { bool get(); void set(bool value); };
bool ExtendViewIntoTitleBar();

void ExtendViewIntoTitleBar(bool value);
public bool ExtendViewIntoTitleBar { get; set; }
var boolean = coreApplicationViewTitleBar.extendViewIntoTitleBar;
coreApplicationViewTitleBar.extendViewIntoTitleBar = boolean;
Public Property ExtendViewIntoTitleBar As Boolean

Property Value

Boolean

bool

Set to true to replace the default window title bar; otherwise, false.

Remarks

The first time the app runs, and for secondary views, the default value is false. For the main view of an app, this value persists between application runs.

When ExtendViewIntoTitleBar is true, the view's content will extend by CoreApplicationViewTitleBar.Height into the title bar region. The region will still be treated like a title bar, meaning you can still drag the window with it, double-click to maximize, and right-click to bring up the system menu. For this reason, you should avoid putting pointer-interactive content in the region. However, if you call Window.SetTitleBar to set a Xaml element as the title bar, the unclickable region is removed and it is no longer necessary to avoid putting pointer-interactive content in the region.

Applies to