How to maximize a UWP window (not fullscreen) -


how can maximize window in uwp project (not fullscreen!) using c#? tried method tryresizeview window bounds parameters nothing happens.

thanks

this not possible in uwp @ time. so, can't maximize, can pretty close:

var av = windows.ui.viewmanagement.applicationview.getforcurrentview(); var di = windows.graphics.display.displayinformation.getforcurrentview(); var bounds = av.visiblebounds; var factor = di.rawpixelsperviewpixel; var size = new windows.foundation.size(bounds.width * factor, bounds.height * factor); size.height -= 100; size.width -= 100; av.tryresizeview(size); 

basically, subtract 100 (to allow taskar). work in cases, without true screen bounds measurement, think best can right now. sorry can't give more. taskbar size (and location) variable.

this implemented in http://aka.ms/template10 (https://github.com/windows-xaml/template10/blob/master/template10%20(library)/utils/monitorutils.cs#l58)

best of luck!


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -