locked
Invoke Child window from Main window........... RRS feed

  • General discussion

  • Hi friends,

                        I am using MVVM Light and trying to invoke a child control from main window the present approach I am using is to instanciate the childwindow object and show it. I know this isn't the right approach as the viewmodel of Mainwindow is accesing the childwindow object as below

    private void InvokePopUpf(string strMsg)
            {  ChildWindow PopUP = new DBPopUP();
                PopUP.Show();
                PopUP.Closed += new EventHandler(PopUP_Closed); }

    Is there any other approach for communication of the same.

    Wednesday, April 4, 2012 8:11 AM

All replies