Files
docs-desktop/dotnet-desktop-guide/framework/wpf/app-development/how-to-set-the-title-of-a-window-from-a-page.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* 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
2020-09-04 09:46:28 -07:00

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
windows [WPF], setting title from a page
title of window [WPF], setting from a page
pages [WPF], setting window title from
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.