CoreApplicationViewTitleBar CoreApplicationViewTitleBar CoreApplicationViewTitleBar CoreApplicationViewTitleBar Class

Definition

Enables an app to define a custom title bar that displays in the app's window.

public : sealed class CoreApplicationViewTitleBar
struct winrt::Windows::ApplicationModel::Core::CoreApplicationViewTitleBar
public sealed class CoreApplicationViewTitleBar
Public NotInheritable Class CoreApplicationViewTitleBar
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

ExtendViewIntoTitleBar ExtendViewIntoTitleBar ExtendViewIntoTitleBar ExtendViewIntoTitleBar

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

Height Height Height Height

Gets the height of the title bar.

IsVisible IsVisible IsVisible IsVisible

Gets a value that specifies whether this title bar is visible.

SystemOverlayLeftInset SystemOverlayLeftInset SystemOverlayLeftInset SystemOverlayLeftInset

Gets the width of the system-reserved region of the upper-left corner of the app window. This region is reserved when the current language is a right-to-left language.

SystemOverlayRightInset SystemOverlayRightInset SystemOverlayRightInset SystemOverlayRightInset

Gets the width of the system-reserved region of the upper-right corner of the app window. This region is reserved when the current language is a left-to-right language.

Events

IsVisibleChanged IsVisibleChanged IsVisibleChanged IsVisibleChanged

Occurs when the visibility of the title bar (indicated by the IsVisible property) changes.

LayoutMetricsChanged LayoutMetricsChanged LayoutMetricsChanged LayoutMetricsChanged

Occurs when the title bar needs to respond to size changes. The most common trigger for this event is when the app window moves to a screen that has a different DPI. Use this event to verify and update the positioning of UI elements that depend on the title bar's size.

See also