This documentation is archived and is not being maintained.

Window.WindowStyle Property

Gets or sets a window's border style. This is a dependency property.

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

public WindowStyle WindowStyle { get; set; }
/** @property */
public WindowStyle get_WindowStyle ()

/** @property */
public void set_WindowStyle (WindowStyle value)

public function get WindowStyle () : WindowStyle

public function set WindowStyle (value : WindowStyle)

<object WindowStyle="WindowStyle" .../>

Property Value

A WindowStyle that specifies a window's border style. The default value is SingleBorderWindow.

Identifier field

WindowStyleProperty

Metadata properties set to true

None

WindowStyle can be one of the WindowStyle enumeration values, including None, ToolWindow, SingleBorderWindow (default), and ThreeDBorderWindow.

The following figure shows the window styles on Windows Vista (Windows Vista Aero theme, with transparent glass enabled):

Window styles
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
Show: