using Aucma.Scada.UI.viewModel.AssemblyPlan; using System.Windows; using System.Windows.Input; namespace Aucma.Scada.UI.Page.AssemblyPlan { /// /// PlanInfoEditWindow.xaml 的交互逻辑 /// public partial class PlanInfoEditWindow : Window { private PlanInfoEditViewModel planInfoEditViewModel = new PlanInfoEditViewModel(); public PlanInfoEditWindow() { InitializeComponent(); this.DataContext = planInfoEditViewModel; } private void dataGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { planInfoEditViewModel.MouseClick(sender); } } }