I am trying to change a CornerRadius value with StaticResource but there is an error showing.
My goal is to override CornerRadius of my controls. For instance, a RadComboBox. I already have the Style RadComboBoxStyle which have the following Setter value.
<Setter Property="mat:MaterialAssist.CornerRadius" Value="{telerik:FluentResource ResourceKey=CornerRadius}"/>
When I input numeric value (5, 10) as Value, I works well. But I want to have a StaticResource that holds the numeric value so I created a System:Double resource that holds the cornerradius value but when I put it as Value in the Style Setter, an error is showing.
My code
<Setter Property="mat:MaterialAssist.CornerRadius" Value="{StaticResource GenericInputCornerRadius}"/>
Error
''5' is not a valid value for property 'CornerRadius'.'