Window.WindowStyle Window.WindowStyle Window.WindowStyle Window.WindowStyle Property

定义

获取或设置窗口的边框样式。Gets or sets a window's border style.

public:
 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

属性值

一个指定窗口边框样式的 WindowStyleA WindowStyle that specifies a window's border style. 默认值为 SingleBorderWindowThe default is SingleBorderWindow.

注解

WindowStyle可以WindowStyle是枚举值之一,包括NoneToolWindowSingleBorderWindow (默认值)和ThreeDBorderWindowWindowStyle can be one of the WindowStyle enumeration values, including None, ToolWindow, SingleBorderWindow (default), and ThreeDBorderWindow.

下图显示了上Windows VistaWindows Vista的窗口样式(Windows Vista Aero 主题,启用了透明玻璃):The following figure shows the window styles on Windows VistaWindows 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
元数据属性设置为trueMetadata properties set to true NoneNone

适用于