AppWindowTitleBar 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表應用程式視窗的標題列。
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
- 繼承
- 屬性
Windows 需求
| 規格需求 | Description |
|---|---|
| 裝置系列 |
Windows 10, version 1903 (已於 10.0.18362.0 引進)
|
| API contract |
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)
|
屬性
| 名稱 | Description |
|---|---|
| BackgroundColor |
取得或設定標題列背景的色彩。 |
| ButtonBackgroundColor |
取得或設定標題列按鈕的背景色彩。 |
| ButtonForegroundColor |
取得或設定標題列按鈕的前景色彩。 |
| ButtonHoverBackgroundColor |
取得或設定當指標位於標題列按鈕上方時的背景色彩。 |
| ButtonHoverForegroundColor |
取得或設定當指標位於標題列按鈕上方時的前景色彩。 |
| ButtonInactiveBackgroundColor |
取得或設定處於非使用中狀態時標題列按鈕的背景色彩。 |
| ButtonInactiveForegroundColor |
取得或設定處於非使用中狀態時標題列按鈕的前景色彩。 |
| ButtonPressedBackgroundColor |
取得或設定按下標題列按鈕的背景色彩。 |
| ButtonPressedForegroundColor |
取得或設定按下標題列按鈕的前景色彩。 |
| ExtendsContentIntoTitleBar |
取得或設定值,指定這個標題列是否應該取代預設窗口標題列。 |
| ForegroundColor |
取得或設定標題列前景的色彩。 |
| InactiveBackgroundColor |
取得或設定處於非使用中狀態時標題列背景的色彩。 |
| InactiveForegroundColor |
取得或設定處於非使用中狀態時標題列前景的色彩。 |
| IsVisible |
取得值,這個值會指定這個標題列是否可見。 |
方法
| 名稱 | Description |
|---|---|
| GetPreferredVisibility() |
傳回標題列的慣用可見性模式。 |
| GetTitleBarOcclusions() |
取得標題列遮蔽的清單。 |
| SetPreferredVisibility(AppWindowTitleBarVisibility) |
設定標題列的慣用可見性模式。 重要 AppWindowTitleBar.SetPreferredVisibility API 是有限存取功能的一部分, (請參閱 LimitedAccessFeatures 類別) 。 如需詳細資訊或要求解除鎖定令牌,請使用 LAF存取令牌要求表單。 |