How to create maximized resizable main window? #185
Replies: 5 comments
-
@r-pankevicius I believe you're looking for .SetMaximized(true) |
Beta Was this translation helpful? Give feedback.
-
Thanks @MikeYeager , it was close. This code compiled in WinExe project type starts main window maximized, window has minimize/maximize, close and restore (?) buttons. static void Main(string[] args)
{
var window = new PhotinoWindow()
.SetTitle("Window title")
.SetMaximized(true);
window.StartString = "Hello";
window.WaitForClose();
} However pressing that "restore" button (middle one, I don't know how it's called exactly, the window becomes minimized but still on top: Adding |
Beta Was this translation helpful? Give feedback.
-
@r-pankevicius I believe you have run across a known bug in Photino. We broke the OS default sizes when we added a new feature recently. It's on our radar. We recently figured out a build issue that had caused us grief for a few weeks and this week is the BUILD conference, so we'll likely get into this next week. Sorry for the inconvenience. I believe it you set a size and turn of use defaults, you can also set maximized to true and the window will work as expected, but you will have to specify the 'normal' size. |
Beta Was this translation helpful? Give feedback.
-
No worries, @MikeYeager : I've just started to migrate the app from Electron.NET to Photino, I expect it to take some time, so I have time to wait for a fix. |
Beta Was this translation helpful? Give feedback.
-
@MikeYeager I saw it is solved in 3.1.18 |
Beta Was this translation helpful? Give feedback.
-
Hi,
In examples I see using absolute sizes for main window, like
.SetSize(new Size(2048, 1024))
in Angular Demo App.How to create resizable main window win minimize/maximize buttons that is maximized to host window at the start?
Beta Was this translation helpful? Give feedback.
All reactions