public MainPage() { InitializeComponent(); MainViewModel = (App.Current.Resources["Locator"] as ViewModelLocator).MainViewModel; MainViewModel.Changed += MainViewModel_Changed; }
public ViewModelLocator (){ MainViewModel = new MainViewModel(); }
public MainPage() { InitializeComponent(); MainViewModel = (App.Current.Resources["Locator"] as ViewModelLocator).MainViewModel; MainViewModel.Changed += MainViewModel_Changed; }
public ViewModelLocator (){ MainViewModel = new MainViewModel(); }