Пример #1
0
        public MainPage()
        {
            InitializeComponent();

            MainViewModel = (App.Current.Resources["Locator"] as ViewModelLocator).MainViewModel;
            MainViewModel.Changed += MainViewModel_Changed;
        }
Пример #2
0
 public ViewModelLocator (){
     MainViewModel = new MainViewModel();
 }