Jaa


CoreApplicationViewTitleBar Class

Definition

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

public ref class CoreApplicationViewTitleBar sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class CoreApplicationViewTitleBar final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class CoreApplicationViewTitleBar
Public NotInheritable Class CoreApplicationViewTitleBar
Inheritance
Object Platform::Object IInspectable CoreApplicationViewTitleBar
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

ExtendViewIntoTitleBar

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

Height

Gets the height of the title bar.

IsVisible

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

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

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

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

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.

Applies to

See also