public MainWindow() { InitializeComponent(); this.displayControlEdit.MouseMove += new System.Windows.Input.MouseEventHandler(displayControlEdit_MouseMove); this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing); }