Hi, I have couple of questions on XamDataTree with CheckBox:
1. Currently, we can only check/uncheck the checkbox when click on the checkbox, is there a way to click on item, checkbox will be auto checked?
2. Select state and MouseOver state only change background color of an item, checkbox isn't included, can you provide sample to also highlight checkbox background?
3. How to change the foreground color of selected item.
Thanks,
Crystal.
Hello Crystal,
After reviewing your questions I have created a sample project that illustrate how some of the functionality could be achieved. I am not sure if you would like to change the background of the checkbox itself or to the element where the checkbox is placed so there is no white space between the checkbox and the items name so I have not modified the default style. In both cases you can copy the style from the generic.xaml file located at C:\Program Files (x86)\Infragistics\2014.2\WPF\DefaultStyles\DataTree and modify it to meet your criteria.In order to modify the foreground color and the check state when a node is selected you can use SelectedNodesCollectionChanged event and modify the state and the foreground color.