CoreApplicationViewTitleBar.ExtendViewIntoTitleBar Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.