Changing WindowStyle makes window white and freezes window.
So i hook key events in MainWindow like so:
And after changing the WindowStyle the windows becomes white, and i'm unable to activate it.
It does not crash like programs on Windows, that become mat/white.
It feels like noesis freezes, but no error is spit out.
The same hapens when changing WindowStyle to WindowState;
The end goal here is to go from Window with a border to fullscreen-borderless and the other way around.
Code: Select all
private bool ctrl = false;
private void MainWindow_KeyUp(object sender, KeyEventArgs args)
{
if (args.Key == Key.Escape)
new Messaging.Message(2, "Window", "LogIn"); // sets content of MainWindow to LogInScreen.
if (args.Key == Key.LeftCtrl || args.Key == Key.RightCtrl)
ctrl = true;
if (args.Key == Key.F && ctrl)
{
ctrl = false;
if (this.WindowStyle == WindowStyle.SingleBorderWindow)
this.WindowStyle = WindowStyle.ThreeDBorderWindow;
else
this.WindowStyle = WindowStyle.SingleBorderWindow;;
}
args.Handled = true;
}
It does not crash like programs on Windows, that become mat/white.
It feels like noesis freezes, but no error is spit out.
The same hapens when changing WindowStyle to WindowState;
The end goal here is to go from Window with a border to fullscreen-borderless and the other way around.
-
sfernandez
Site Admin
- Posts: 2995
- Joined:
Re: Changing WindowStyle makes window white and freezes window.
I was able to reproduce it here.
Could you please report it in our bugtracker, we'll try to solve it as soon as possible.
Could you please report it in our bugtracker, we'll try to solve it as soon as possible.
-
sfernandez
Site Admin
- Posts: 2995
- Joined:
Re: Changing WindowStyle makes window white and freezes window.
No problem :)
Thanks for the report.
Thanks for the report.
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 2 guests