Window.WindowStyle Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets a value that indicates the appearance of the title bar and border of the Window.
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public Property WindowStyle As WindowStyle
public WindowStyle WindowStyle { get; set; }
Property Value
Type: System.Windows.WindowStyle
A value that indicates how the title bar and border should appear. The default is SingleBorderWindow.
Exceptions
Exception | Condition |
---|---|
NotSupportedException | The application is not running outside the browser. |
SecurityException | Application.HasElevatedPermissions is false. |
ArgumentException | When setting this property, the specified value is not a valid WindowStyle value. |
Remarks
In Silverlight 5, trusted, out-of-browser applications can create multiple Window instances and manipulate them programmatically. However, only the Application.MainWindow instance can have a WindowStyle property value of BorderlessRoundCornersWindow.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also