poohbar
08/23/2017, 6:02 PMButton b2 = new Button();
b2.Click += new RoutedEventHandler(Onb2Click);
groostav
08/23/2017, 9:50 PMButton b2 = new Button();
b2.Click += new RoutedEventHandler(Onb2Click);
b2.Click(ClickEvent()); //or b2.Click.fire(ClickEvent()) or whatever your syntax is
to be a compiler failure.bj0
08/23/2017, 11:13 PM+=
syntax, though it's not clear as just calling a function. I really don't like having to wrap functions in handler objects though. Luckily you don't actually have to do thatgildor
08/24/2017, 1:46 AMnapperley
08/25/2017, 12:35 AM