mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-08 23:43:29 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.0 KiB
1.0 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to: Set the Title of a Window from a Page | 03/30/2017 |
|
fecf0d19-3eb6-4f8c-a44f-ff1b6f2b34b3 |
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 xref:System.Windows.Controls.Page is hosted.
Example
A page can change the title of the window that is hosting it by setting the xref:System.Windows.Controls.Page.WindowTitle%2A property, like so:
[!code-xamlHOWTONavigationSnippets#SetPageWindowTitleXAML]
Note
Setting the xref:System.Windows.Controls.Page.Title%2A property of a page does not change the value of the window title. Instead, xref:System.Windows.Controls.Page.Title%2A specifies the name of a page entry in navigation history.