Example #1
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new PersonViewModel();
 }
Example #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];
        }