Export (0) Print
Expand All

Window.ResizeMode Property

Gets or sets the resize mode. This is a dependency property.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public ResizeMode ResizeMode { get; set; }
/** @property */
public ResizeMode get_ResizeMode ()

/** @property */
public void set_ResizeMode (ResizeMode value)

public function get ResizeMode () : ResizeMode

public function set ResizeMode (value : ResizeMode)

<object ResizeMode="ResizeMode" .../>

Property Value

A ResizeMode value specifying the resize mode.

Identifier field

ResizeModeProperty

Metadata properties set to true

AffectsMeasure

There are four options:

  • NoResize. The user cannot resize the window. The Maximize and Minimize boxes are not shown.

  • CanMinimize. The user can only minimize the window and restore it from the taskbar. The Minimize and Maximize boxes are both shown, but only the Minimize box is enabled.

  • CanResize. The user has the full ability to resize the window, using the Minimize and Maximize boxes, and a draggable outline around the window. The Minimize and Maximize boxes are shown and enabled. (Default).

  • CanResizeWithGrip. This option has the same functionality as CanResize, but adds a "resize grip" to the lower right corner of the window.

The following figure illustrates these options when applied to Window:

Window resize modes
NoteNote:

You cannot set or get this property when a window is hosted in a browser.

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

Community Additions

ADD
Show:
© 2015 Microsoft