This question is locked. New answers and comments are not allowed.
I am using the following code in MainPage.xaml for styling the group header of a JumpList.
I want to change the color of the group header dynamically at runtime depending on a condition.
Can you please tell me how to do this?
Thanks and Regards,
Nilangini
<Setter Property="GroupHeaderTemplate"> <Setter.Value> <DataTemplate> <Border HorizontalAlignment="Stretch"> <TextBlock FontSize="{StaticResource PhoneFontSizeMedium}" FontFamily="{StaticResource PhoneFontFamilySemiLight}" HorizontalAlignment="Left" Margin="6" Text="{Binding}" VerticalAlignment="Bottom" Foreground="DarkGreen" FontWeight="Bold" /> <Border.Background> <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"> <GradientStop Color="Black" Offset="0" /> <GradientStop Color="White" Offset="1" /> </LinearGradientBrush> </Border.Background> </Border> </DataTemplate> </Setter.Value></Setter>I want to change the color of the group header dynamically at runtime depending on a condition.
Can you please tell me how to do this?
Thanks and Regards,
Nilangini