Page.WindowWidth プロパティ

定義

Window のホスト NavigationWindow または Page の幅を取得または設定します。

public:
 property double WindowWidth { double get(); void set(double value); };
public double WindowWidth { get; set; }
member this.WindowWidth : double with get, set
Public Property WindowWidth As Double

プロパティ値

Double

Page を直接ホストするウィンドウの幅。

次の例は、ページからウィンドウの幅を設定する方法を示しています。

<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SetWindowWidthPage"
    WindowWidth="500"
    >
</Page>

注釈

WindowWidth は、ウィンドウによって直接ホストされている場合 Page にのみ適用されます。これには次のものが含まれます。

a Page がホストされている Frame場合は、設定 WindowWidth に影響はありませんが、引き続き WindowWidth.

Page XAML ブラウザー アプリケーション (XBAP) では、Internet Explorer の幅Windows変更する場合にのみ使用WindowWidthできます。幅は、設定WidthMinWidthまたはMaxWidth指定して変更することはできません。

Windows Internet Explorer ウィンドウの最小幅は 250 ピクセルです。 ブラウザーでホストされるページの場合、Windows Internet Explorer ウィンドウのWindowWidth合計幅が 250 ピクセル未満になる場合は、値が適用されないことがあります。

適用対象