I am trying to make DialogWindow as a user control.
I am creating instance of that user control and then doing control.Show but dialog window is not showing up I also tried doing the following but with no success.
Any help is appreciated.
public void Show()
{
.Normal;
}
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/
Hi,Could you put more details about the user control?Everything works if i define the XamWindow in XAML of the user control.I'm not sure if I understand your scenario correctly.Regards,Marin
Also xamDialogWindow.Show() deson't work. I have to do something like that
this.LayoutRoot.Children.Add(window);
Is it possible to call its Show method like silverlight childwindow's show method.