Doppelklick nur oben beim Fenster

This commit is contained in:
2026-02-20 13:15:08 +01:00
parent c6ff7054cf
commit 3922357d54

View File

@@ -140,12 +140,18 @@ namespace BeWo.View.Windows
}
var pos = PointToScreen(Mouse.GetPosition(this));
if (!(e.OriginalSource is Border) && !(e.OriginalSource is TextBlock) || e.OriginalSource is TextBlock && Mouse.DirectlyOver is Button)
{
return;
}
var pos2 = e.GetPosition((this));
if(pos2.Y == 0 || pos2.Y > 40)
{
return;
}
if (WindowState == WindowState.Maximized)
{
WindowState = WindowState.Normal;