This is a migrated thread and some comments may be shown as answers.

Radwindow & MVVM

1 Answer 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Waleed Seada
Top achievements
Rank 2
Waleed Seada asked on 08 Jan 2011, 04:37 PM
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

1 Answer, 1 is accepted

Sort by
0
Waleed Seada
Top achievements
Rank 2
answered on 08 Jan 2011, 05:39 PM
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
Tags
Window
Asked by
Waleed Seada
Top achievements
Rank 2
Answers by
Waleed Seada
Top achievements
Rank 2
Share this question
or