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
955
Double Click Events
posted

I noticed that the TreeMap does not natively support doubleClick event.

There is a windows double ClickEvent  (System.Windows.Input.MouseButtonEventArgs)
that I could use. However, there appears to be no connection back to the selected node, and I could not find a HitTest type API on the treeMap control that would return the selected node.

IsHitTest appears to return a handle to the UserControl.

Any ideas how I use the double click event to identify the selected node.

Thanks

Parents
No Data
Reply
  • 605
    posted

    You may set a NodeStyle to the node binder like the following

    <igTreemap:NodeBinder.NodeStyle>

                            <Style TargetType="igTreemap:TreemapNode" x:Name="NodeStyle" >

                                <Setter Property="Fill" Value="Transparent"/>

                                <Setter Property="BorderBrush" Value="Black"/>

                                <Setter Property="BorderThickness" Value="1"/>

                                <EventSetter Event="MouseDoubleClick" Handler="node_MouseDoubleClick" />

                                <Setter Property="Padding" Value="10" />

                            </Style>

                        </igTreemap:NodeBinder.NodeStyle>

    where

    void node_MouseDoubleClick(object sender, MouseButtonEventArgs e)

    {

    }

    is the handler for the mouse double click event.

     

     

Children