Ghost1372

everything can be handy

WindowHelper

SetWindowSize

you can set your MainWindow Size:

1
WindowHelper.SetWindowSize(window, 200, 300);

Window Height/Width Min/Max Size

you can set Window Height/Width Min/Max Size, first you need to register RegisterWindowMinMax method in your window class:

1
2
var windowHelper = new WindowHelper(window);
windowHelper.RegisterWindowMinMax();

now you can change window Min/Max size:

1
2
3
4
5
WindowHelper.MinWindowWidth = 500;
WindowHelper.MinWindowHeight = 300;

WindowHelper.MaxWindowWidth = 800;
WindowHelper.MaxWindowHeight = 600;

SwitchToThisWindow

1
WindowHelper.SwitchToThisWindow(window);

MoveAndResizeCenterScreen

1
WindowHelper.MoveAndResizeCenterScreen(window, width, height);

MoveAndResize

1
WindowHelper.MoveAndResize(window, x, y, width, height);

MoveAndResize

1
WindowHelper.Move(window, x, y);

Demo

you can run demo and see this feature.

0%