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
280
capture image click on ultralistview
posted

How can I determine wheter user double click on ultralistview item's image or text.

I need to know because if user double click on ultralistviewitem's image i load an image editor otherwise i load details form.

  • 71886
    Verified Answer
    Offline posted

    Hello,

    You could this by checking the element your mouse is over in the 'ItemDoubleClick' event of our 'UltraListView' control:

     

            private void ultraListView1_ItemDoubleClick(object sender, Infragistics.Win.UltraWinListView.ItemDoubleClickEventArgs e)

            {

                if (ultraListView1.UIElement.ElementFromPoint(ultraListView1.PointToClient(MousePosition)) is UltraListViewImageUIElement)

                    Console.WriteLine("Just double-clicked the item's image");

                else Console.WriteLine("Just double-clicked the item's text");

            }

    Please feel free to let me know if a question about our tool set comes up on your mind.