Setting Same Colors for Light 7 Dark Theme

Thread is closed for posting
3 posts, 1 answers
  1. Aaron
    Aaron avatar
    13 posts
    Member since:
    Dec 2012

    Posted 25 Dec 2012 Link to this post

    I am using a dark background for all my pages so would like the same look and feel for the ToggleSwitch whether it is in Light theme or Dark them.  The actual toggle button (not the checked or unchecked background) is White on Dark Theme and Black on Light Theme.  I would like the button to be filled White in both modes.

     I have attached images ToggleDark.png and ToggleLight.png with this post.  I just want the control to look the same in both Dark and Light themes.  I would like the control to look like image ToggleDark.png in both modes if that is possible.

    I have got the following code so far:




    <Controls1:RadToggleSwitch x:Name="tsSettings" Header="show settings?" Foreground="White" IsChecked="False">



    <ContentControl Foreground="White" Background="White" Content="{Binding}"/>




    <Style TargetType="telerikToggleSwitch:ToggleSwitchButton">

    <Setter Property="CheckBackground" Value="#FFFF0000"/>

    <Setter Property="Background" Value="White"/>

    <Setter Property="BorderBrush" Value="White"/>




    Thanks for all your help :)
  2. Answer
    Todor avatar
    798 posts

    Posted 28 Dec 2012 Link to this post

    Hi Aaron,

    Here's how you can change the color for the ToggleSwitch button:
        <Style TargetType="telerikToggleSwitch:ToggleSwitchButton">
            <Setter Property="ThumbBackground" Value="Green"/>

    Let me know if you need additional assistance.

    All the best,
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. Aaron
    Aaron avatar
    13 posts
    Member since:
    Dec 2012

    Posted 05 Jan 2013 Link to this post

    Thank you!
Back to Top