a simple question but annoying me for days
What i want is to make expanderview's header and expanderview item have the same color when the expanderview is selected (the expenderview is in a listbox)
I have tried to change the foreground property,but it didn't work.(If you set a inital value,it works,but I can't change it useing binding or c# code )
Thanks very much.
This is part of my xaml code .
<ListBoxItem Name="listItem1">
<toolkit:ExpanderView Name="expanderView" Header="expanderview header" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0"
Width="460" IsHitTestVisible="False" IsExpanded="{Binding ElementName=listItem1, Path=IsSelected}">
<toolkit:ExpanderView.Items>
<TextBlock Name="expanderblock" Text="the first"/>
<TextBlock Text="the second"/>
</toolkit:ExpanderView.Items>
</toolkit:ExpanderView>
</ListBoxItem>