Doppelklick nur oben beim Fenster
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user