oc A

oc A

  • NA
  • 30
  • 0

ViewModel interaction

Aug 24 2011 1:32 AM

Hi All,

I am doing a SilverLight application using MVVM. In that I have 2 csproj - Diagnosis and PatientDetails. In Diagnosis , i ve Medication.xaml which is a childwindow. The ViewModel name which Medication.xaml refers to is MedicationViewModel. In PatientDetails i ve AddnewAllergy.xaml and SaveAllergy.xaml. The ViewModel that both these xaml refers to is AllergyViewModel. Now my problem is from MedicationViewModel , i ve to show AddnewAllergy.xaml. In this situation, Medication.xaml has to be invisible. From AddnewAllergy, on clicking the button , it should close the AddnewAllergy.xaml and show the SaveAllergy.xaml. After saving the details, should close the SaveAllergy.xaml and Medication.xaml has to be visible.
How can i do this?? The problem is how can i show the xaml which is in a different project.
Anyone please help. Any help is highly appreciated.

Thanks in advance.


Answers (5)