WPF: message box with checkbox added

In WPF, I am looking for a "don't show again" checkbox in the pop-up window of my message.

Does anyone know where I can get such control, or maybe how to copy the style of a regular WPF mailbox so that I can create my own?

thank

+5
source share
3 answers

Take a look at Dialog Overview . The overview covers message boxes, general dialog boxes, and custom dialog boxes. In your case, you will want to create a simple custom dialog box containing a message, a check box and, nevertheless, a lot of buttons that you need.

, TextBlock, CheckBox Button , Window. , .

:

// Open the dialog box modally 
messageBox.ShowDialog();

ShowDialog() , , .

+2

, , , , WPF

0

You can simply use the dialog box. An easy way to do this is to save the variable in the project settings, which will be updated during the popup close () event. So, you just need to check the value in the project settings before showing the popup.

0
source

All Articles