Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
How to detect a click on a specific image on a node
posted

Hi,

I am able to differentiate between a click on an image and the text portion of a node in an UltraTree by doing the following (after a few checks before):

VB code:

If tree.UIElement.LastElementEntered.GetAncestor(GetType(Infragistics.Win.UltraWinTree.NodeTextUIElement)) IsNot Nothing Then

  ' Clicked on the text portion

ElseIf tree.UIElement.LastElementEntered.GetAncestor(GetType(Infragistics.Win.ImageUIElement)) IsNot Nothing Then

  ' Clicked on the image portion

End If

Now, I have two images on my node, I don't care if it is two Left Images or one Left Image and one Node Appearance Image and I want to be able to detect which image is the one that was clicked.

How can I go about that?

I tried to use your Infragistics UIElementViewer Utility, but it does not work with Infragistics v.14.1 (also, your download link is not working)

Thanks for your help.