Window.ResizeMode Property
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
'Declaration Public Property ResizeMode As ResizeMode 'Usage Dim instance As Window Dim value As ResizeMode value = instance.ResizeMode instance.ResizeMode = value
/** @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.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:
Note: |
|---|
| 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.
Note: