How to change the expanderview's header color ( silverlight toolkit for windows phone) RRS feed

  • Question

  • 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}">
                            <TextBlock Name="expanderblock" Text="the first"/>
                            <TextBlock Text="the second"/>

    • Edited by a7744hsc Wednesday, March 6, 2013 5:14 AM
    Wednesday, March 6, 2013 5:03 AM

All replies