Share via

Window.WindowStyle Property


Gets or sets a window's border style.

 property System::Windows::WindowStyle WindowStyle { System::Windows::WindowStyle get(); void set(System::Windows::WindowStyle value); };
public System.Windows.WindowStyle WindowStyle { get; set; }
member this.WindowStyle : System.Windows.WindowStyle with get, set
Public Property WindowStyle As WindowStyle

Property Value

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


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


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

Dependency Property Information

Identifier field WindowStyleProperty
Metadata properties set to true None

Applies to