We use the xamDataTree 2012.2 with <ig:NodeLayout.ExpandedIconTemplate> and CollapsedIconTemplate. Now the tree runs fine except the displayed Icons are not clickable (like it is in the MS TreeView), I only can click to the node caption(s) to select one. But: if I don't have a caption, how do I select the node?
Any simple solution like a property "NodeIconClickable = true" ?
TorstenR
Hello Torsten,
Thank you for your email. I have been looking into your question and I can suggest using the MosueMeftButtonDown event of the root item in the icon templates, in order to select the node, when you click on it. I have created a sample application for you, that shows how you can implement this approach.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
This is a solution, but only the half way: the hover effect should also be applied if the mouse goes over.
So I think the best is to have this:
<ig:NodeLayout.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal"><Image .../><TextBlock ... />...
So we have the click handling AND the hover effect.
Thank you for your reply. Please let me know if you need any further assistance on the matter.