Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
870
Create dialog without specifiying container
posted

using the System.Windows.Controls.ChildWindow I can create a modal dialog and show it without setting a containing control.

MyChildWindow window = new MyChildWindow();

window.Show();

This lends itselft to the MVVM pattern very well.  Is it possible to do them same with the XamWebDialogWindow?

Parents
No Data
Reply
  • 6759
    Offline posted

    Hello Brian,

    The answer is yes you can do that. You just need to add the XamDialogWindow to the Visual Tree.

    Here a sample code:

                var dlgWin = new XamWebDialogWindow();
                this.LayoutRoot.Children.Add(dlgWin);
                dlgWin.Show();

    Hope this helps.

Children