This is a migrated thread and some comments may be shown as answers.

Change header label

1 Answer 56 Views
ToggleSwitch
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christophe
Top achievements
Rank 1
Christophe asked on 10 Nov 2013, 12:55 PM

Hello, I have a problem when the theme is light. I have ad in app.xaml.cs this :

<Style TargetType="telerikPrimitives:RadToggleSwitch">
            <Setter Property="Foreground" Value="White"/>
        </Style>
But how change the header style ?

Thanks !

Christophe

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 12 Nov 2013, 04:21 PM
Hello,

Thank you for writing.

You can use the HeaderStyle property in order to apply a custom style for the header. This is the default style:

<Style x:Key="CustomHeaderStyle" TargetType="ContentControl">
    <Setter Property="Foreground" Value="{StaticResource PhoneSubtleBrush}"/>
    <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeNormal}"/>
    <Setter Property="HorizontalAlignment" Value="Left"/>
</Style>

You can start from there, apply your modifications and set this style through the HeaderStyle propery in RadToggleSwitch.

Let me know if you need additional assistance.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
ToggleSwitch
Asked by
Christophe
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or