Dedddeded
Dedddeded

Reputation: 23

UWP: How can I resize uwp app window at runtime as I do it with my mouse?

I need to resize my app window as we usually do it by dragging mouse at a border of the window. How can I do this programatically in runtime?

Upvotes: 1

Views: 1059

Answers (1)

Stefan Wick  MSFT
Stefan Wick MSFT

Reputation: 13850

The closest API to doing this in UWP is this one:

ApplicationView.TryResizeView(Size) Method
https://learn.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.applicationview.tryresizeview

Upvotes: 2

Related Questions