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

RadToggleButton not following theme

3 Answers 102 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
JIG
Top achievements
Rank 1
JIG asked on 27 Sep 2017, 01:56 PM

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>

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 29 Sep 2017, 05:00 PM
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.
0
JIG
Top achievements
Rank 1
answered on 03 Oct 2017, 10:20 AM
that's the way it has been done, most controls switch to the correct theme but not the togglebutton
0
Dilyan Traykov
Telerik team
answered on 06 Oct 2017, 08:22 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Buttons
Asked by
JIG
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
JIG
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or