AddHandler Method
UFT One 2022 and later: Following the discontinuance of the Silverlight development framework, UFT One no longer supports the Silverlight Add-in by default.
If you need to use and extend the Silverlight Add-in, contact OpenText Support.
Adds an event handler.
Handlers added with this method are released by the UFT infrastructure.
Visual Basic (Declaration) | |
---|---|
Overridable Sub AddHandler( _ ByVal element As UIElement, _ ByVal eventName As String, _ ByVal handler As MulticastDelegate _ ) |
Parameters
- element
- The control on which to add the event handler. This is generally the IUtilityObject.ApplicationObject but may be a child control or any other control.
- eventName
The name of the event to handle, for example "SelectedDatesChanged" for the SelectedDatesChanged event on a calendar.
- handler
- The event handler.
C# | Copy Code |
---|---|
private RoutedEventHandler _hExpanded; |