public static CarRegistrationViewModel GetInstance() { if (_carRegistrationInstance == null) { _carRegistrationInstance = new CarRegistrationViewModel(); } else { _carRegistrationInstance.CurrentPage = "\\View\\CarRegistrationInfoPage.xaml"; } return(_carRegistrationInstance); }
public CarRegistrationMainPage() { DataContext = CarRegistrationViewModel.GetInstance(); InitializeComponent(); }