Intersoft.Client.Framework Namespace > DependencyObjectExtensions Class > AddHandler Method : AddHandler(DependencyObject,RoutedEvent,Delegate,Boolean) Method |
<ExtensionAttribute()> Public Overloads Shared Sub AddHandler( _ ByVal element As DependencyObject, _ ByVal routedEvent As RoutedEvent, _ ByVal handler As Delegate, _ ByVal handlesToo As Boolean _ )
Dim element As DependencyObject Dim routedEvent As RoutedEvent Dim handler As Delegate Dim handlesToo As Boolean DependencyObjectExtensions.AddHandler(element, routedEvent, handler, handlesToo)
[ExtensionAttribute()] public static void AddHandler( DependencyObject element, RoutedEvent routedEvent, Delegate handler, bool handlesToo )
[ExtensionAttribute()] public: static void AddHandler( DependencyObject^ element, RoutedEvent^ routedEvent, Delegate^ handler, bool handlesToo )
void UXPage1_Loaded(object sender, RoutedEventArgs e) { button1.AddHandler(ISButton.ClickEvent, new RoutedEventHandler(button1_Click), true); } void button1_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Button1 Clicked"); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2