using System.Windows; using System.Windows.Input; namespace BPASmartClient.Academy.View { /// /// NewMateritalView.xaml 的交互逻辑 /// public partial class NewMaterialView : Window { public NewMaterialView() { InitializeComponent(); this.btClose.Click += (o, e) => { this.Close(); }; this.br.MouseLeftButtonDown += (o, e) => { if (e.LeftButton == MouseButtonState.Pressed) this.DragMove(); }; } private void btClose_Click(object sender, RoutedEventArgs e) { this.Close(); } } }