This documentation is archived and is not being maintained.
Window.WindowStyle Property
Visual Studio 2008
Gets or sets a window's border style. This is a dependency property.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
'Declaration Public Property WindowStyle As WindowStyle 'Usage Dim instance As Window Dim value As WindowStyle value = instance.WindowStyle instance.WindowStyle = value
<object WindowStyle="WindowStyle" .../>
Property Value
Type: System.Windows.WindowStyleA 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):

Note: |
|---|
You cannot set or get this property when a window is hosted in a browser. |
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
Note: