public Page01(NationViewModel back) { ViewModel = new NationsViewModel(new PageService()); InitializeComponent(); list.ItemsSource = new List <NationViewModel> { new NationViewModel { ImageUrl = back.ImageUrl, Ms = back.Ms, Name = back.Name } }; }
private void listview_ItemSelected(object sender, SelectedItemChangedEventArgs e) { ViewModel = new NationsViewModel(new PageService()); ViewModel.SelectedNation2Command.Execute(e.SelectedItem as NationViewModel); }
public Page02(NationViewModel nation) { ViewModel = new NationsViewModel(new PageService()); InitializeComponent(); }
public Page01() { ViewModel = new NationsViewModel(); InitializeComponent(); }