CoreApplicationViewTitleBar.ExtendViewIntoTitleBar 屬性

定義

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

public:
 property bool ExtendViewIntoTitleBar { bool get(); void set(bool value); };
bool ExtendViewIntoTitleBar();

void ExtendViewIntoTitleBar(bool value);
public bool ExtendViewIntoTitleBar { get; set; }
var boolean = coreApplicationViewTitleBar.extendViewIntoTitleBar;
coreApplicationViewTitleBar.extendViewIntoTitleBar = boolean;
Public Property ExtendViewIntoTitleBar As Boolean

屬性值

Boolean

bool

設定為 true 以取代預設視窗標題列;否則為 false

備註

第一次執行應用程式時,如果是次要檢視,預設值為 false。 針對應用程式的主要檢視,此值會在應用程式執行之間保存。

ExtendViewIntoTitleBar 為 true 時,檢視的內容會由 CoreApplicationViewTitleBar.Height 延伸至標題列區域。 區域仍會被視為標題列,這表示您仍然可以使用它拖曳視窗、按兩下以最大化,然後按一下滑鼠右鍵以顯示系統功能表。 因此,您應該避免將指標互動式內容放在區域中。 不過,如果您呼叫 Window.SetTitleBar 將 Xaml 元素設定為標題列,則會移除無法選取的區域,而且不再需要避免將指標互動式內容放在區域中。

適用於