I would like to use XamDialog in my project but it seems the dialog must be in the visualtree before you can call Show. My project uses MVVM and the logic that determines when to show the modal is in my vm. Is it possible to use XamDialog with mvvm
Thanks in advance
Will
There's a better way. I just blogged about how to show the XamDialogWindow in a ViewModel without it being part of the visual tree. Of course, as the post says, I would still use a Dialog Service to show the dialog as your VM should be ignorant to Views.
http://brianlagunas.com/2013/05/18/showing-the-xamdialogwindow-from-a-viewmodel-in-silverlight-and-wpf/