Esempio n. 1
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new PersonViewModel();
 }
Esempio n. 2
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new PersonViewModel();
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int i = int.Parse(txtInput.Text);

            this.SelectedPerson = this.ListPerson[i];
        }