Dela via


ApplicationView.PreferredLaunchViewSize Property

Definition

Gets or sets the size that the app launches with when the ApplicationView.PreferredLaunchWindowingMode property is set to PreferredLaunchViewSize, except in cases where the system manages the window size directly.

public:
 static property Size PreferredLaunchViewSize { Size get(); void set(Size value); };
static Size PreferredLaunchViewSize();

static void PreferredLaunchViewSize(Size value);
public static Size PreferredLaunchViewSize { get; set; }
var size = ApplicationView.preferredLaunchViewSize;
ApplicationView.preferredLaunchViewSize = size;
Public Shared Property PreferredLaunchViewSize As Size

Property Value

The size that the app launches with when the ApplicationView.PreferredLaunchWindowingMode property is set to PreferredLaunchViewSize, except in cases where the system manages the window size directly.

Remarks

This property only has an effect when the app is launched on a desktop device that is not in Tablet mode (Windows 10 only).

For the very first launch of an app the PreferredLaunchWindowingMode will always be Auto and the ApplicationView.PreferredLaunchViewSize will be determined by system policies. The API applies to the next launch of the app.

Applies to

See also