c# - WPF- MessageBox to be top most -
i have wpf application, need messagebox top most. in win forms that:
system.windows.forms.messagebox.show(new form() { topmost = true }, "sure wanna save?", "confirm", messageboxbuttons.yesno) but how do in wpf?
i saw few different answers non of them work me e.g:
messagebox.show(application.current.mainwindow, "im on top - of main window"); my mainwindo null. in application messagebox opening different pages- not windows
any idea how in simple way?
you have create own window , set topmost value true.
mywindow dialog = new mywindow(); dialog.topmost = true; dialog.show();
Comments
Post a Comment