Hi,
We are using mvvm light framework to build our application. In our ViewModel folder, we have number of Viewmodel like orderSupplyViewModel,HouseholdSupplyViewModel etc files as per the different functionality of the application. We have included all these viewModels in the MainViewModel by making the MainViewModel as partial class. So you can say we have one MainViewModel. Now we have completed 40% of the application and we need to separate the view Models as one partial class. So that we can call the different viewmodels from the mainviewModel. How to go about it? Following is the code realted to one viewmodel named - OrderSuppliesViewModel
namespace ParentalHealthClient.ViewModel { /// /// This class contains properties that a View can data bind to. /// /// public partial class MainViewModel : ViewModelBase { private List _selectedFavouriteMedicalItems; private List _selectedFavouriteHouseHoldItems; private List _selectedOrderItems; private HouseholdSuppliesDAO _dataAccessForOrder;
/// <summary>
/// Initializes a new instance of the OrderSuppliesViewModel class.
/// </summary>
public void OrderSuppliesViewModel()
{
}
Kindly suggest?
Thanks.