AppWindowTitleBar クラス

定義

アプリ ウィンドウのタイトル バーを表します。

public ref class AppWindowTitleBar sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppWindowTitleBar final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppWindowTitleBar
Public NotInheritable Class AppWindowTitleBar
継承
Object Platform::Object IInspectable AppWindowTitleBar
属性

注釈

重要

タイトル バーのカスタマイズ API は、Windows アプリ SDK 1.2 以降、Windows 10で部分的にサポートされ、Windows 11で完全にサポートされています。 アプリが他のバージョンの Windows でクラッシュしないようにするには、これらの API を呼び出す前に、コードで AppWindowTitleBar.IsCustomizationSupported をチェックする必要があります。 詳細については、「 タイトル バーのカスタマイズ 」を参照してください。

プロパティ

BackgroundColor

タイトル バーの背景の色を取得または設定します。

ButtonBackgroundColor

タイトル バー ボタンの背景色を取得または設定します。

ButtonForegroundColor

タイトル バー ボタンの前景色を取得または設定します。

ButtonHoverBackgroundColor

ポインターがタイトル バー ボタン上にある場合のタイトル バー ボタンの背景色を取得または設定します。

ButtonHoverForegroundColor

ポインターがタイトル バー ボタンの上にある場合の前景色を取得または設定します。

ButtonInactiveBackgroundColor

タイトル バー ボタンが非アクティブな場合の背景色を取得または設定します。

ButtonInactiveForegroundColor

タイトル バー ボタンが非アクティブな場合の前景色を取得または設定します。

ButtonPressedBackgroundColor

タイトル バー ボタンが押されたときの背景色を取得または設定します。

ButtonPressedForegroundColor

タイトル バー ボタンが押されたときの前景色を取得または設定します。

ExtendsContentIntoTitleBar

アプリのコンテンツがタイトル バー領域に拡張されるかどうかを示す値を取得または設定します。

ForegroundColor

タイトル バーの前景の色を取得または設定します。

Height

クライアント座標のタイトル バーの高さを取得します。

IconShowOptions

ウィンドウ アイコンをタイトル バーにどのように表示するかを指定する値を取得または設定します。

InactiveBackgroundColor

非アクティブなタイトル バーの背景の色を取得または設定します。

InactiveForegroundColor

タイトル バーが非アクティブな場合の前景の色を取得または設定します。

LeftInset

アプリ ウィンドウの左上隅のシステム予約領域の幅を取得します。

PreferredHeightOption

プロパティtrueが の場合にタイトル バーの高さオプションを指定する値をAppWindowTitleBar.ExtendsContentIntoTitleBar取得または設定します。

RightInset

アプリ ウィンドウの右上隅にあるシステム予約領域の幅を取得します。

メソッド

IsCustomizationSupported()

タイトル バーをカスタマイズできるかどうかを示す値を取得します。

ResetToDefault()

現在のタイトル バーをウィンドウの既定の設定に戻します。

SetDragRectangles(RectInt32[])

ウィンドウのドラッグ領域を設定します。

適用対象

こちらもご覧ください