WindowHeight Property

Page.WindowHeight Property


Gets or sets the height of the host Window or NavigationWindow of a Page.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public double WindowHeight { get; set; }

Property Value

Type: System.Double

The height of a window that directly hosts a Page.

WindowHeight is only applied when a Page is hosted directly by a window, which includes:

If a Page is hosted by a Frame, setting WindowHeight has no effect, but you can still get the value of WindowHeight.

A Page in an XAML browser application (XBAP) can only use WindowHeight to change the height of Windows Internet Explorer; the height cannot be changed by setting Height, MinHeight, or MaxHeight.

The minimum height of the Windows Internet Explorer window is 150 pixels. For browser-hosted pages, this means that the value of WindowHeight may not be applied if it would cause the total height of the Windows Internet Explorer window to be less than 150 pixels.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft