Delen via


ViewModePreferences.CustomSize Property

Definition

Gets or sets a custom preferred size for the app window.

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

void CustomSize(Size value);
public Size CustomSize { get; set; }
var size = viewModePreferences.customSize;
viewModePreferences.customSize = size;
Public Property CustomSize As Size

Property Value

The preferred size for the app window.

Remarks

If you set this property, you must also set the ViewSizePreference property value to ViewSizePreference.Custom. Otherwise, the custom size value set here is ignored.

Applies to