We are using Telerik UI for WPF and are having some problems with the RadRadioButton when applying themes. The problem is that the style of the theme is not fully applied to the control if the content is custom, and in this case it has a stackpanel with an image and a textblock. Then the textblock won´t get the correct foreground color when selected:
<
telerik:RadRadioButton
x:Name
=
"MyRadioButton"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Width
=
"16"
Height
=
"16"
Source
=
"../Images/icon_16x16.png"
/>
<
TextBlock
>My radiobutton</
TextBlock
>
</
StackPanel
>
</
telerik:RadRadioButton
>
When the RadRadioButton only has a text as content the styling is correct:
<
telerik:RadRadioButton
x:Name
=
"MyRadioButton"
Conent
=
"My radiobutton"
>
</
telerik:RadRadioButton
>
I have tried to use RelativeSource and AncestorType in the binding but it doesn´t seem to work:
ForeGround={Binding RelativeSource={RelativeSource AncestorType=TextBox}, Path=Tag}