Export (0) Print
Expand All

Window.WindowStyle Property

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)

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.

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

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.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show:
© 2014 Microsoft