WindowSettings.WindowStartupLocation Property


Gets a value that indicates how the out-of-browser application window is positioned at startup.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public WindowStartupLocation WindowStartupLocation { get; }
<WindowSettings WindowStartupLocation="enumMemberName" />

Property Value

Type: System.Windows.WindowStartupLocation
A value that indicates how the application window is positioned at startup.

This property is not required. If you do not specify it in the out-of-browser configuration, the default value of CenterScreen is used.

This property is read-only at run time, but you can set it in the out-of-browser configuration. For more information, see How to: Configure an Application for Out-of-Browser Support.

You can set the Window.Top and Window.Left properties at run time only if WindowStartupLocation is set to Manual.


Supported in: 5, 4

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

Community Additions