title: Define Background Color of Alternating TreeView Rows Based on Visibility
body: <p>Is there a way in WPF to define the background of alternating visible rows?</p>
  
  <p>I've tried setting the AlternationCount property, but that restarts for every child node which gives a weird look.</p>
  
  <p>Ideally what I would like is to know what the visual index of a given node is. Only expanded nodes are counted.</p>