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

Switching from MetroTouch theme

1 Answer 113 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 26 May 2016, 11:41 AM

Seems that scrollbar sizes is not updated when switching from MetroTouch to any other theme.

 

How to reproduce:

Create a Form, change it to RadForm.

Add RadVScrollBar, dock it to the right.

Create two buttons, add onclick handlers

System::Void radButton1_Click(System::Object^  sender, System::EventArgs^  e) {
            Telerik::WinControls::ThemeResolutionService::ApplicationThemeName = "TelerikMetroTouch";
        }
System::Void radButton2_Click(System::Object^  sender, System::EventArgs^  e) {
             Telerik::WinControls::ThemeResolutionService::ApplicationThemeName = "Desert";
        }

Press button1, then button2. The scrollbar size is bigger than expected (see screenshot)

Telerik_UI_For_WinForms_2016_1_216_Dev.msi / VisualStudio2010 / C++CLI

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 26 May 2016, 03:24 PM
Hi Anton,

Thank you for writing.

The TelerikMetroTouch theme applies special settings in order optimize the display of the controls on touch devices. Switching simply back, to a normal theme after using the touch theme will not change the modified bounds of the elements. This theme is not intended to be mixed with other themes in a single application.

If it is possible for you and you are developing for desktop, please use the TelerikMetro theme which basically delivers the same styling as its touch version without the scaling.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
Themes and Visual Style Builder
Asked by
Alexey
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or