To remove the white background from Telerik Wpf RadMultiColumnComboBox when it is IsKeyboardFocusWithin, you can modify its control template by removing the Background property of the PART_EditableTextBox element. Here's an example of how to do it:
<Style TargetType="telerik:RadMultiColumnComboBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:RadMultiColumnComboBox">
<Grid x:Name="TemplateRoot">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadDropDownButton x:Name="PART_Button" />
<TextBox x:Name="PART_EditableTextBox" Grid.Row="1" />
<Popup x:Name="PART_Popup" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate TargetType="telerik:RadMultiColumnComboBox">
<Grid x:Name="TemplateRoot">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadDropDownButton x:Name="PART_Button" />
<TextBox x:Name="PART_EditableTextBox" Grid.Row="1"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
FocusVisualStyle="{x:Null}" />
<Popup x:Name="PART_Popup" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter TargetName="PART_EditableTextBox" Property="Background" Value="Transparent" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<telerik:RadMultiColumnComboBox Style="{StaticResource MyRadMultiColumnComboBoxStyle}" />
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-07-31 11:00:00 +0000
Seen: 13 times
Last updated: Apr 25 '22