This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm using the MultiColumn TreeView and I'd like to display alternative row backgrounds to make it easier to read for users. I tried creating an ItemContainerStyle for the MulticolumnTreeViewItem that triggers when ItemsControl.AlternationIndex is 1, setting its background to a different color. However, the background is always the same color, despite the Snoop tool showing the background colors alternating correctly. Am I doing this the right way? Can you perhaps provide a small sample that demonstrates alternating backgrounds with the treeview? Thanks, -Craig |
|
|
Hello Craig, The following style works for me: <ms:MulticolumnTreeView AlternationCount="2" This produces the desired alternation effect (see attached screenshot). However, it sounds like this is what you're already doing -- do you see something different? |
|
|
I actually discovered that we had written a special ControlTemplate for MulticolumnTreeViewItem that removed its Border, which prevented the background colors from appearing. Once I fixed the template, the backgrounds worked as desired. Thanks, -Craig |
|