This commit is contained in:
Курнат Андрей
2026-03-25 19:08:46 +03:00
parent 054d10cb6d
commit 339b9ab8aa
5 changed files with 131 additions and 25 deletions

View File

@@ -1,4 +1,6 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace XLAB2
{
@@ -13,6 +15,16 @@ namespace XLAB2
DataContext = _viewModel;
}
private void DataGridRow_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
var row = sender as DataGridRow;
if (row != null)
{
row.IsSelected = true;
row.Focus();
}
}
private async void Window_Loaded(object sender, RoutedEventArgs e)
{
await _viewModel.InitializeAsync();