Change the Foreground color of a TextBlock inside a ListView's DataTemplate when the item is selected
问题 I'm building a Windows Store app with C#/XAML. I have a simple ListView bound to an ItemsSource. There's a DataTemplate which defines the structure of each item and that has a ContentControl and a TextBlock in it. I wish to change the Foreground colour of the TextBlock when the item is selected. Does anyone know how I can do this? <ListView Grid.Column="1" ItemsSource="{Binding Categories}" ItemContainerStyle="{StaticResource CategoryListViewItemStyle}" Background="{StaticResource