Radwindow & MVVM

2 posts, 0 answers
  1. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 08 Jan 2011 Link to this post

    Dear All,

    I have created a Logon usercontrol based on radwindow, this radwindow is using a modelview class to have all the business functionality.
    How can I comunicate with the Mainpage modelview or sending data back & forword between both (main page VM & Radwindow VM?

    Maybe it is a little bit away from telerik controls, but I am sure you can help me resolving this issue, specialy I am new to MVVM.

    Using silverlight 4, telerik Q3 2010, Galasoft toolkit

    Thanks and best regards
    Waleed
  2. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 08 Jan 2011 Link to this post

    After a few searchs, I reach the following solution:
    1- Open the dialog window, fill with data which are reflected to the attached viewmodel.
    2- Subscribe to the Close event for the logon window.
    3- cust back the sender as radlogon and get the viewmodel.
    4- apply any necessary calls to the mainpage viewmodel.

    I don't know whether is this the best approach or not ...

    Any advice.
    Best regards
    Waleed
  3. DevCraft banner
Back to Top