AppWindowTitleBar Class

Definition

Represents the title bar of an app window.

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

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Properties

BackgroundColor

Gets or sets the color of the title bar background.

ButtonBackgroundColor

Gets or sets the background color of the title bar buttons.

ButtonForegroundColor

Gets or sets the foreground color of the title bar buttons.

ButtonHoverBackgroundColor

Gets or sets the background color of a title bar button when the pointer is over it.

ButtonHoverForegroundColor

Gets or sets the foreground color of a title bar button when the pointer is over it.

ButtonInactiveBackgroundColor

Gets or sets the background color of a title bar button when it's inactive.

ButtonInactiveForegroundColor

Gets or sets the foreground color of a title bar button when it's inactive.

ButtonPressedBackgroundColor

Gets or sets the background color of a title bar button when it's pressed.

ButtonPressedForegroundColor

Gets or sets the foreground color of a title bar button when it's pressed.

ExtendsContentIntoTitleBar

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

ForegroundColor

Gets or sets the color of the title bar foreground.

InactiveBackgroundColor

Gets or sets the color of the title bar background when it's inactive.

InactiveForegroundColor

Gets or sets the color of the title bar foreground when it's inactive.

IsVisible

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

Methods

GetPreferredVisibility()

Returns the preferred visibility mode for the title bar.

GetTitleBarOcclusions()

Gets a list of title bar occlusions.

SetPreferredVisibility(AppWindowTitleBarVisibility)

Sets the preferred visibility mode for the title bar.

Important

The AppWindowTitleBar.SetPreferredVisibility API is part of a Limited Access Feature (see LimitedAccessFeatures class). For more information or to request an unlock token, contact Microsoft Support.

Applies to