c# - How to show a modal window in windows 10 universal app? -


when use mail univesal app in windows 10, when add account (setting->accounts->add account), seems popup modal window choose account. try use messagedialog, can't put custom content it.

edit : screenshot screenshot

is knows how implement or there api can it?

note: when window open, can't minimize/maximize/close main window. so, modal window.

i haven't used myself yet believe you're looking contentdialog api.

var dialog = new contentdialog() {     title = "lorem ipsum",     maxwidth = this.actualwidth // required mobile!     content = yourxamlcontent };   dialog.primarybuttontext = "ok"; dialog.isprimarybuttonenabled = false; dialog.primarybuttonclick += delegate { };  var result = await dialog.showasync(); 

content dialog

msdn guidlines dialogs: link

msdn contentdialog api: link


Comments

Popular posts from this blog

Upgrade php version of xampp not success -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -