Compartilhar via


Como: Set the Title of a Window from a Page

This example shows how to set the title of the window in which a Page is hosted.

Exemplo

A page can change the title of the window that is hosting it by setting the WindowTitle property, like so:

<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>

Observação

Setting the Title property of a page does not change the value of the window title.Instead, Title specifies the name of a page entry in navigation history.