ViewModePreferences.CustomSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.