CoreApplicationViewTitleBar.ExtendViewIntoTitleBar CoreApplicationViewTitleBar.ExtendViewIntoTitleBar CoreApplicationViewTitleBar.ExtendViewIntoTitleBar CoreApplicationViewTitleBar.ExtendViewIntoTitleBar Property

Definition

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

public : Platform::Boolean ExtendViewIntoTitleBar { get; set; }
bool ExtendViewIntoTitleBar();

void ExtendViewIntoTitleBar(bool extendviewintotitlebar);
public bool ExtendViewIntoTitleBar { get; set; }
Public ReadWrite Property ExtendViewIntoTitleBar As bool

Property Value

bool 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.