Defines constants that indicate the appearance of the title bar and border of an out-of-browser application window.
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
Public Enumeration WindowStyle
public enum WindowStyle
| Member name | Description | |
|---|---|---|
| SingleBorderWindow | The window displays a title bar and border. | |
| None | The window does not display a title bar or border. | |
| BorderlessRoundCornersWindow | The window does not display a title bar or border, and the window corners are rounded. |
This enumeration is used by the WindowSettings.WindowStyle property.
Silverlight
Supported in: 5, 4For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference
The BorderlessRoundCornersWindow value can only applied to the main Window, attempting to set it on a new window throws an ArgumentException with the message "Value does not fall within the expected range.":
var win = new Window();
win.WindowStyle = WindowStyle.BorderlessRoundCornersWindow; // exception throw
According to Pete Brown (Developer Division Community Program Manager at Microsoft) this is by design see: http://10rem.net/blog/2011/04/13/silverlight-5-working-with-operating-system-windows