Page.WindowHeight Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the height of the host Window or NavigationWindow of a Page.
public:
property double WindowHeight { double get(); void set(double value); };
public double WindowHeight { get; set; }
member this.WindowHeight : double with get, set
Public Property WindowHeight As Double
Property Value
The height of a window that directly hosts a Page.
Examples
The following example shows how to set the height of a window from a page.
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SetWindowHeightPage"
WindowHeight="500"
>
</Page>
Remarks
WindowHeight is only applied when a Page is hosted directly by a window, which includes:
Windows Internet Explorer
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.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin