Files
ThreadPilot/Views/ProcessView.xaml.cs
T
2026-06-24 17:52:45 +02:00

28 lines
737 B
C#

namespace ThreadPilot.Views
{
using System.Windows.Controls;
using System.Windows.Input;
using ThreadPilot.Helpers;
using ThreadPilot.ViewModels;
public partial class ProcessView : System.Windows.Controls.UserControl
{
public ProcessView()
{
this.InitializeComponent();
this.DataContext = ServiceProviderExtensions.GetService<ProcessViewModel>();
}
private void ProcessRow_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
if (sender is not DataGridRow row)
{
return;
}
row.IsSelected = true;
row.Focus();
}
}
}