In the RadComboBox I have a IsMouseOver trigger and an IsFocused trigger. The IsMouseOver trigger changes the background color while the IsFocused trigger does not. How can I make this work? I've also tried doing this in the editabletemplate with no luck.
Here is test markup that demonstrates: It should trigger a Black background on keyboard focus.
<Window |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
x:Class="WpfApplication12.MainWindow" |
x:Name="Window" |
Title="MainWindow" |
Width="327" Height="217"> |
<Window.Resources> |
<Style x:Key="{x:Type telerik:RadComboBox}" TargetType="{x:Type telerik:RadComboBox}"> |
<Style.Triggers> |
<MultiTrigger> |
<MultiTrigger.Conditions> |
<Condition Property="IsEnabled" Value="True"/> |
<Condition Property="IsFocused" Value="True"/> |
</MultiTrigger.Conditions> |
<Setter Property="Background" Value="Black" /> |
</MultiTrigger> |
<MultiTrigger> |
<MultiTrigger.Conditions> |
<Condition Property="IsEnabled" Value="True"/> |
<Condition Property="IsMouseOver" Value="True"/> |
</MultiTrigger.Conditions> |
<Setter Property="Background" Value="Blue" /> |
</MultiTrigger> |
</Style.Triggers> |
</Style> |
</Window.Resources> |
<Grid x:Name="LayoutRoot"> |
<Grid.RowDefinitions> |
<RowDefinition Height="50" /> |
<RowDefinition Height="50" /> |
</Grid.RowDefinitions> |
<TextBox >Some text</TextBox> |
<telerik:RadComboBox Grid.Row="1" IsEditable="True" IsReadOnly="True" Margin="0,0,0,1"> |
<telerik:RadComboBoxItem Content="Item 1"/> |
<telerik:RadComboBoxItem Content="Item 2"/> |
<telerik:RadComboBoxItem Content="Item 3"/> |
</telerik:RadComboBox> |
</Grid> |
</Window> |