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

属性值

一个WindowStyle,它指定窗口的边框样式。A 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

适用于