Skip to content

dark Overlay only for warn, success and error dialogs... #716

Answered by vnbaaij
madcoda9000 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is be design. It is because you can't dismiss the confirmation by clicking outside of it. You're supposed to give an answer in the confirmation and custom examples.

This behavior is controlled by the Modal parameter (in the DialogParameters). For a MessageBox the DialogService evaluates if the SecondaryAction is null or empty. If it is Modal is true (==dark background). If it is not Modal is false (== light background) => you are supposed to take action by clicking one of the buttons. As alwau=ys you can still dismiss the dialog by pressing 'ESC' key.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@madcoda9000
Comment options

Answer selected by madcoda9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants