MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.3k stars 2.45k forks source link

In full-screen mode, the dialog window pops out on 2 monitor #3538

Closed ACXap closed 4 years ago

ACXap commented 5 years ago

Good day. Desktop on 2 monitors, in full-screen mode, the dialog window pops out on 2 monitor and outside the application window

public bool NotificationWithConfirmation(string header, string body) { var dialog = _dialogCoordinator.ShowModalMessageExternal(this, header, body, MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings() { AffirmativeButtonText = "Yes", NegativeButtonText = "No" }); if (dialog == MessageDialogResult.Affirmative) { return true; } else { return false; } } Error

Environment(please complete the following information):

AKruimink commented 4 years ago

This seems to be an issue where when a window state is set to Maximized it actualy extends the window resolution by several pixels to hide everything of non importance, when an external dialog is created it uses the actual parent window it's width, which now extends the bounds of your screen resulting in a dialog bigger then your monitor size.