This question is locked. New answers and comments are not allowed.
I created a style for the Header of the RadAutoComplete control, but I'm not able to assign the style to the header.
Here's how I'm referring to the style in the XAML file:
I'm getting the following error message:
Failed to assign to property "Windows.UI.Xaml.FrameworkElement.Style".
I'm assuming the header element is a TextBlock, so the style TargetType="TextBlock". If that is not the case, could you please provide an example on how to define a style for the header?
Thank you.
<ResourceDictionary xmlns:Input="using:Telerik.UI.Xaml.Controls.Input" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Style x:Key="TestStyle" TargetType="TextBlock"> <Setter Property="FontFamily" Value="Segoe UI Symbol"/> <Setter Property="Foreground" Value="#FF008A00"/> <Setter Property="FontSize" Value="30" /> <Setter Property="TextWrapping" Value="Wrap" /> </Style> </ResourceDictionary>Here's how I'm referring to the style in the XAML file:
<Input:RadAutoCompleteBox Header="Test" HeaderStyle="{StaticResource TestStyle}" />I'm getting the following error message:
Failed to assign to property "Windows.UI.Xaml.FrameworkElement.Style".
I'm assuming the header element is a TextBlock, so the style TargetType="TextBlock". If that is not the case, could you please provide an example on how to define a style for the header?
Thank you.