Handle event from another class.
I'm trying to do this simple thing but it doesn't work,
Public Class Window1
Protected Friend Overridable Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
End Sub
End Class
Public Class UIL
Inherits Window1
Protected Friend Overrides Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
MsgBox("hello")
End Sub
End Class
When i click the button, it should show the message box, but it doesn't.
I have checked that there are not events declared in the XAML part,
and i tried with Shadows or Overloads, but i still do get nothing.
Is there something wrong with the Inherits ?
Do you have any idea ?
Thank you,

