Is there any way to get messageboxes to size correctly when there is not much text but the caption is as long? For example if you execute
MessageBox.Show(“Save your changes?”, “Data has changed” ……
The title, being in a much larger font is always truncated.
I see what you mean. It’s related to the material-3 theme with a much larger font for the title. There are two issues: one is that the message box has a maxWidth value in the theme set to 450 I believe; that is easy to change. The second is that windows’ preferred size is calculated using the content and not the tittle, which is correct but it may create a problem for message boxes with a large title and show content.
I will log an enhancement issue to take the title in consideration for the message box width. The maxWidth in the theme still needs to be increased and will still at one point truncate the title. The content wraps and grows vertically.