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
170
Mouse over expansion indicator
posted

Hello Community,

how can I check, if the Mouse is over the expansion indicator of a Node?

regards

Robert

Parents
  • 69832
    Verified Answer
    Offline posted

    void ultraTree1_MouseMove(object sender, MouseEventArgs e)
    {
        UltraTree tree = sender as UltraTree;
        UIElement controlElement = tree != null ? tree.UIElement : null;
        if ( controlElement != null )
        {
            UIElement elementAtPoint = controlElement.ElementFromPoint( e.Location );
            if ( elementAtPoint is Infragistics.Win.UltraWinTree.ExpansionIndicatorUIElement )
            {
                //  If you get into this block the mouse is over an expansion indicator.
                //  You can get a reference to the associated UltraTreeNode like this:
                UltraTreeNode node = elementAtPoint.GetContext( typeof(UltraTreeNode) ) as UltraTreeNode;
            }
        }
    }

Reply Children
No Data