You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to limit my MessageDialogs to a maxwidth and maxheight Open from Mahapps.MetroWindow with SizeToContent = WidthAndHeight
I've tried to make a style for MessageDIalog and set the MaxWidth and MaxHeight
MaxWidth - works as it should
MaxHeight - is ignored.
The only way to make it work is to set the fixed Height. But this will look ugly for short messages like "Are you sure you want to do that?"
Steps to reproduce
Show a MahappsMetroWindow
Use ShowMessageAsync with a very long Message like : Lorem te ipsum.....
<Style TargetType="{x:Type mahDialogs:MessageDialog}" BasedOn="{StaticResource {x:Type mahDialogs:MessageDialog}}">
-> Works as expected
-> Ignored
-> Works, but not looking nice for shorter messages
</Style>
Expected behavior
MaxHeight to work as MaxWidth.
Height works as it should, it adds scrollbars to text
Actual behavior
The Messagebox goes crazy long and tall that it doesnt fit to the screen and users dont see OK button, so that they have to kill the process from taskbar
Describe the bug
I am trying to limit my MessageDialogs to a maxwidth and maxheight Open from Mahapps.MetroWindow with SizeToContent = WidthAndHeight
I've tried to make a style for MessageDIalog and set the MaxWidth and MaxHeight
MaxWidth - works as it should
MaxHeight - is ignored.
The only way to make it work is to set the fixed Height. But this will look ugly for short messages like "Are you sure you want to do that?"
Steps to reproduce
Show a MahappsMetroWindow
<Style TargetType="{x:Type mahDialogs:MessageDialog}" BasedOn="{StaticResource {x:Type mahDialogs:MessageDialog}}"> -> Works as expected -> Ignored -> Works, but not looking nice for shorter messages </Style>Use ShowMessageAsync with a very long Message like : Lorem te ipsum.....
Expected behavior
MaxHeight to work as MaxWidth.
Height works as it should, it adds scrollbars to text
Actual behavior
The Messagebox goes crazy long and tall that it doesnt fit to the screen and users dont see OK button, so that they have to kill the process from taskbar
Environment
Screenshots
The text was updated successfully, but these errors were encountered: