CoreApplicationViewTitleBar 類別

定義

可讓應用程式定義顯示在應用程式視窗中的自訂標題列。

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
繼承
Object Platform::Object IInspectable CoreApplicationViewTitleBar
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

ExtendViewIntoTitleBar

取得或設定值,指定這個標題列是否應該取代預設視窗標題列。

Height

取得標題列的高度。

IsVisible

取得值,這個值會指定這個標題列是否可見。

SystemOverlayLeftInset

取得應用程式視窗左上角系統保留區域的寬度。 當目前語言是由右至左的語言時,會保留此區域。

SystemOverlayRightInset

取得應用程式視窗右上角系統保留區域的寬度。 當目前語言是由左至右的語言時,會保留此區域。

事件

IsVisibleChanged

發生于 IsVisible 屬性所指出標題列的可見度 () 變更時。

LayoutMetricsChanged

發生于標題列需要回應大小變更時。 此事件最常見的觸發程式是當應用程式視窗移至具有不同 DPI 的畫面時。 使用此事件來確認和更新相依于標題列大小的 UI 元素位置。

適用於

另請參閱