RadToggleButton not following theme

4 posts, 0 answers
  1. CreoniX
    CreoniX avatar
    58 posts
    Member since:
    Sep 2009

    Posted 27 Sep Link to this post

    I have RadToggleButton's in my application and they are not following the style set in the mainview.

                StyleManager.ApplicationTheme = new Office2016Theme();

    Only when i explicetly set the theme like this, the theme is applied

     <telerik:RadToggleButton telerik:StyleManager.Theme="Office2016" Margin="5,0,0,0" Width="35" Height="25" ToolTip="Enable Translation Mode" Visibility="{Binding TranslationModeVisible}" IsChecked="{Binding TranslationModeActive}">
                    <Grid>
             <Image Width="25" Height="20" Source="/CSD.Global.Infrastructure;component/Images/report.png" Margin="0,-3,0,0"/>
        </Grid>
    </telerik:RadToggleButton>

  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    24 posts

    Posted 29 Sep Link to this post

    Hi Marnix,

    Can you try and set the application theme before the call to the InitializeComponent() in the MainWindow?
    You can read more about Setting a theme with StyleManager in our documentation.

    I hope you find this helpful. Let me know if I can be of any further assistance.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. CreoniX
    CreoniX avatar
    58 posts
    Member since:
    Sep 2009

    Posted 03 Oct in reply to Vladimir Stoyanov Link to this post

    that's the way it has been done, most controls switch to the correct theme but not the togglebutton
  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    603 posts

    Posted 06 Oct Link to this post

    Hello Marnix,

    I'm attaching a sample project where the RadToggleButton is styled correctly at my end.

    Could you please have a look and let me know how this differs from the setup and result at your end?

    Regards,
    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top