For this TreeView definition, I want the button background to be black with white font when the TreeItem.Selected property is true. Then, I want the node to go back to a clear background with black font when when that property is false. How do I do this?
Your example didn't compile because on the ItemTemplate the compiler doesn't know "item". I updated the code and now it compiles but the style doesn't get applied. Any ideas? Also, I really need to learn more about styles.