共用方式為


HOW TO:設定頁面視窗的標題

這個範例顯示如何設定裝載 (Host) Page 的視窗標題。

範例

有個頁面可以變更進行裝載的視窗標題,其方法為設定 WindowTitle 屬性,如下所示:

<Page
    xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
    Title="Page Title"
    WindowTitle="Window Title"
    >
</Page>
注意事項注意事項

設定頁面的 Title 屬性並不會變更視窗標題的值。反而,Title 會指定巡覽記錄中頁面項目的名稱。