Mode Preferences Class
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.
Represents the preferred settings to be applied to a view when it's changed to a new view mode.
public ref class ViewModePreferences sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)] class ViewModePreferences final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)] public sealed class ViewModePreferences
Public NotInheritable Class ViewModePreferences
Object IInspectable ViewModePreferences
Windows 10 Creators Update (introduced in 10.0.15063.0)
Windows.Foundation.UniversalApiContract (introduced in v4.0)
To get an instance of ViewModePreferences, call the CreateDefault method.
These view mode preferences are requested values only. The system might override these values when your app is changed to the new view mode. Custom sizes that you specify are not guaranteed to be honored by Windows, so you should not write code that relies on never getting into a size that is smaller than the preferred minimum size or larger than the preferred maximum size. No error is returned when a preferred size is ignored.
Gets or sets a custom preferred size for the app window.
Gets or sets the preferred size of the app window.
Creates a new instance of ViewModePreferences with default property values set for the specified view mode.
Submit and view feedback for