(0) exportieren Drucken
Alle erweitern


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

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

property WindowStyle WindowStyle {
	WindowStyle get ();
	void set (WindowStyle value);
/** @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" .../>


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

Identifier field


Metadata properties set to true


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.

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
© 2014 Microsoft