Pradeep devendran
Pradeep devendran

Reputation: 489

How to disable resize button in winjs

I'm developing windows 10 cordova application and for native integration we should use WinJS. I would like to know below things in Winjs app.

  1. How to disable resize button in app control bar?
  2. How to set maximum windows during application load?

Upvotes: 0

Views: 534

Answers (1)

Konstantin
Konstantin

Reputation: 884

There is no way in UWP to manipulate with windowing buttons (e.g. disable them). To control window size you can use the following three methods:

  1. setPrefferedMinSize to define minimum window size (up to 500x500px).
  2. tryResizeView to manually attempt to resize windows to desired size.
  3. tryEnterFullScreenMode to place app in full-screen mode.

There is a code sample on GitHub for these methods, including JS.

Upvotes: 1

Related Questions