1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
public static readonly RoutedEvent MySpecialClickEvent = EventManager.RegisterRoutedEvent("MySpecialClick",
RoutingStrategy.Bubble,
typeof (RoutedEventArgs),
typeof (MainWindow));
public event RoutedEventHandler MySpecialClick
{
add
{
this.AddHandler(MySpecialClickEvent, value);
}
remove
{
this.RemoveHandler(MySpecialClickEvent, value);
}
}
|