Export (0) Print
Expand All

How to: 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.

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


<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Page Title"
    WindowTitle="Window Title"
    >
</Page>


NoteNote

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.

Show:
© 2014 Microsoft