Hi,
I am using a multi-column TreeViewAdv. There are a few items i want to accomplish which i need assistance.
1) When i select a record, i want the whole line highlighted not only the length of the item. The highlight should be from edge-to-edge of the control across the other columns.
2) Our application has an add and remove functionality. The added/removed item affects the display in the TreeViewAdv. If i add, the item added is highlighted in let's say light blue. If i remove an item, the item is not yet removed from the TreeViewAdv but it is highlighted in let's say red and the font is italicized.
I made #2 but the problem is the only the lenght of the TreeViewItemAdv is highlighted and is not aligned with the whole highlight. It seems i can't target the object for highlight using DataTriggers.
<DataTrigger Binding="{Binding IsAdded}"
Value="true">
<Setter Property="Background"
Value="{StaticResource ItemAddedBrush}" />
<Setter Property="FontStyle"
Value="Italic" />
</DataTrigger>
<DataTrigger Binding="{Binding IsDeleted}" Value="true">
<Setter Property="Background" Value="{StaticResource ItemRemovedBrush}" />
<Setter Property="FontStyle" Value="Italic" />
</DataTrigger>
For item #1, i implemented the style from the Office2010Blue style and modified the brushes accordingly based on our app. The whole record was highlighted edge-to-edge as i desire but the MouseOver highlight on the item is no longer showing. I already hard-coded the Highlight color for MouseOverBackground for testing purposes but it doesn't get implemented. I did the same on the provided samples and the MouseOver highlight is working but the highlight is not edge-to-edge. Kindly see the attach screenshot of our app.
TreeViewAdv highlight_23ca8552.rar