public MainWindow() { InitializeComponent(); your_control control = new your_control(); control.delete += on_delete; }
public MainWindow() { InitializeComponent(); your_control control = new your_control(); control.bu.Click += on_bu_click; }
public void on_delete(your_control sender) { // your stuff }