如何:从页设置窗口的标题

本示例演示如何设置承载 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 用于指定导航历史记录中页面条目的名称。