Methods
The AppWindow object contains the following methods.
enterFullScreenMode Method
This method provides a programmatic way to change the application to full screen mode. This method may not work in some cases.
Syntax
Input Parameters
None
Return Values
None.
Remarks
This method does not have an effect in tablet mode.
Platform Availability
Windows 10.
Example
exitFullScreenMode Method
This method provides a programmatic way to change the application to the normal resizeable view in desktop mode. This method does not have any effect in Tablet mode.
Syntax
Input Parameters
None
Return Values
None.
Platform Availability
Windows 10.
Example
navigateBack Method
This method provides a programmatic way to navigate back to a previously visited form. This method should not be called in form and application life cycle events.
Syntax
Input Parameters
None
Return Values
None.
Platform Availability
Windows 10.
Example
resizeView Method
This method attempts to set the app window to the specified size.
Syntax
Input Parameters
windowprops
Specifies the size of the app window.This parameter is a JSObject with the following keys. These keys are mandatory.
- height - [double] The minimum height of the window.
- width - [double] The minimum width of the window.
Return Values
None.
Remarks
The method may not work in all cases.This method does not have an effect in tablet mode.
Platform Availability
Windows 10.
Example
setPreferredMinSize Method
This method sets the smallest size allowed for the app window.
Syntax
Input Parameters
windowprops
Specifies the smallest size allowed for the app window, or null if no minimum size is set.This parameter is a JSObject with the following keys. These keys are mandatory or null if not set.
- height - [double] The minimum height of the window.
- width - [double] The minimum width of the window.
Return Values
None.
Remarks
This method does not have an effect in tablet mode.
Platform Availability
Windows 10.
Example