WindowStyle Enumeration (System.Windows)

Switch View :
ScriptFree
.NET Framework Class Library for Silverlight
WindowStyle Enumeration

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)
Syntax

Visual Basic (Declaration)
Public Enumeration WindowStyle
C#
public enum WindowStyle
Members

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.
Remarks

This enumeration is used by the WindowSettings.WindowStyle property.

Version Information

Silverlight

Supported in: 5, 4
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Community Content

Phillip Trelford
Setting WindowStyle to BorderlessRoundCornersWindow on a new Window throws an Exception

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