WindowHeight Property
This documentation is archived and is not being maintained.

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)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public double WindowHeight { get; set; }
/** @property */
public double get_WindowHeight ()

/** @property */
public void set_WindowHeight (double value)

public function get WindowHeight () : double

public function set WindowHeight (value : double)

<object WindowHeight="double" .../>

Property Value

A Double value that is 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:

  • Window

  • NavigationWindow

  • Windows Internet Explorer

If a Page is hosted by a Frame, setting WindowHeight has not effect. Although, 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 can't 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.

See How to: Set the Height of a Window from a Page.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show:
© 2016 Microsoft