Togglebutton style same as in grid

5 posts, 1 answers
  1. Richard
    Richard avatar
    8 posts
    Member since:
    Mar 2015

    Posted 04 Mar 2015 Link to this post

    Hello Group. We would like to have the ToggleButton on a form having the same style as listed in the Grid. Currently we have the Theming set to Windows 8 and then the togglebutton is filled solid with the win-8 color. Now we would like it to have a inner border in win-8 color style.
    What I did I extracted the style into our own styling dictionary file and my button is yellow (?). This yellow color is verywhere so just replacing the colow does not solve this.
    Can someone supply me the style for the toggle button like the one on in the Grid (having inner border)?  
    Thanks,

        Richard
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 05 Mar 2015 Link to this post

    Hello Richard,

    I believe that you extracted the default style when Office Black theme is used. In order to provide you with more specific information, please let me know which theming mechanism you use in your project - through StyleManager or through implicit themes. Also give us more details about which toggle button in the grid's template you are pointing to. Do you use only ToggleButtons in your application or you use RadToggleButton as well?

    Thank you in advance,

    Sia
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Richard
    Richard avatar
    8 posts
    Member since:
    Mar 2015

    Posted 13 Mar 2015 in reply to Sia Link to this post

    Hello,
    Currently we are using the Windows 8 theme and we set the theme like this: StyleManager.ApplicationTheme = new Windows8Theme();
    In our grid we use the GridViewCheckBoxColumn and that gives us checkboxes and we want to use ToggleButtons in the same style.
    Thanks,

    Richard
  5. Answer
    Sia
    Admin
    Sia avatar
    667 posts

    Posted 17 Mar 2015 Link to this post

    Hello Richard,

    Thank you for the provided information. Actually the control that you see is a custom GridViewCheckBox control that inherits from Control. Please find attached a sample application showing how to apply the same template to ToggleButton and RadToggleButton. I hope that this helps.


    Regards,
    Sia
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Richard
    Richard avatar
    8 posts
    Member since:
    Mar 2015

    Posted 18 Mar 2015 in reply to Sia Link to this post

    Yes thanks this was the style we were looking for !
    Richard.
Back to Top
UI for WPF is Visual Studio 2017 Ready