private void BtnUp_Click(object sender, RoutedEventArgs e) { var btn = (Button)sender; var location = (LocationDto)btn.DataContext; ViewModel.LocationUp(location); }
private void BtnUp_Click(object sender, RoutedEventArgs e) { var btn = (Button)sender; var location = (LocationDto)btn.DataContext; ViewModel.LocationUp(location); }