Hi,
I use a standard Wpf Checkbox inside a RadPanelBarItem. I bind the background to a dynamic color and this works well, but when the mouse is over the box the background back to white, I would like that still remains of the assigned color.
Thank you in advance
Luigi
P.S:
Here the useful part of xaml (nothing in code behind)
<DataTemplate x:Key="PanelBarSorgentiTemplate">
<StackPanel Orientation="Horizontal" >
<CheckBox Margin="10 5 5 5" VerticalAlignment="Center"
IsChecked="{Binding IsChecked}"
Background="{Binding Color, Converter={StaticResource ColorToBrush}}"
/>
<TextBlock Text="{Binding Name}"
VerticalAlignment="Center" />
</StackPanel>
</DataTemplate>
<t:RadPanelBarItem Header="{DynamicResource ResourceKey={x:Static l:ResourcesKeys.StatisticheVisualizzate}}"
ItemsSource="{Binding TabRisultati.StatisticheVisualizzate}"
ItemTemplate="{StaticResource PanelBarSorgentiTemplate}"
Visibility="{Binding IsTabStatisticaSelected, Converter={StaticResource BoolToVis}}"
IsExpanded="True"/>