Switching from MetroTouch theme

2 posts, 0 answers
  1. ANTON
    ANTON avatar
    5 posts
    Member since:
    Apr 2016

    Posted 26 May 2016 Link to this post

    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

  2. Hristo
    Hristo avatar
    1504 posts

    Posted 26 May 2016 Link to this post

    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.

    Hristo Merdjanov
    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.
Back to Top