mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 23:43:19 +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.1 KiB
1.1 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to: Set the Height of a Window from a Page | 03/30/2017 |
|
4e4488ff-ab5c-4ee9-81a4-e1addb55c5cc |
How to: Set the Height of a Window from a Page
This example illustrates how to set the height of the window from a xref:System.Windows.Controls.Page.
Example
A xref:System.Windows.Controls.Page can set the height of its host window by setting xref:System.Windows.Controls.Page.WindowHeight%2A. This property allows the xref:System.Windows.Controls.Page to not have explicit knowledge of the type of window that hosts it.
Note
To set the height of a window using xref:System.Windows.Controls.Page.WindowHeight%2A, a xref:System.Windows.Controls.Page must be the child of a window.
[!code-xamlHOWTONavigationSnippets#SetPageWindowHeightXAML]