I have been playing with the level styles of the Grid tree control and have a question on applying the styles. I did figure out that if I create a empty style for the first one I add that the grid retains it's primary root style. However what I would like to do is setup the control so that if the node is a parent it is shown in a different background color. The children work from setting the simple style as the second style. Is there a way to make a style dependant on the haschildnodes property?
This is what I have defined in codebehind right now for a standard tree grid
GridStyleInfo levelInfo = new GridStyleInfo();
GridStyleInfo level1Info = new GridStyleInfo();
levelInfo.Background = new SolidColorBrush(Color.FromRgb(0xB2, 0xCC, 0xFF));
this.myGrid.LevelStyles.Add(level1Info);
this.myGrid.LevelStyles.Add(levelInfo);
Thanks.