MessageDialog missing in C# WPF

1.2k Views Asked by At

I am new in WPF C#.

I want to use a MessageDialog, but I can't instantiate it because I can't find its namespace reference.

Please note that I can use a MessageBox.

I take a screenshot here:

enter image description here

What should I look to solve the problem?


Update I tried to use a ModalWindow as suggested by some user who deleted his answer, but I have the same problem.

enter image description here

1

There are 1 best solutions below

5
CFreitas On BEST ANSWER

MessageDialog is a UWP class, so it is only available to Windows 10 Store applications. As far as I know it does not exist in WPF.
The namespace is Windows.UI.Popups.