RadToggleSwitch - how to change style

2 posts, 0 answers
  1. Martin Hamilton
    Martin Hamilton avatar
    18 posts
    Member since:
    Aug 2009

    Posted 24 Jun 2015 Link to this post

    I am excited to see that you have added the RadToggleSwitch and after viewing the different types of appearances in the animated gif on the website; I encountered two issues.

    First, I cannot find any documentation on it - except this (http://www.telerik.com/help/winforms/buttons-toggleswitch-overview.html)

    Which doesn't really tell you anything - and I realize it's new and you still need to update the website...

     But the second thing is that I cannot see where one changes the appearance of the ToggleSwitch... unless I'm completely overlooking something... Is there an appearance dropdown combo or something that allows one to change the look of the switch as shown in the link above?

     Thank you in advance.

  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 25 Jun 2015 Link to this post

    Hi Martin,

    Thank you for contacting us. 

    Our online documentation is updating at the moment but you can download the CHM file from you account and refer to the articles. Here is a link how to download the offline help - Download Product Files

    You can also take a look at our example in the DemoApplication which demonstrates a few of the properties of RadToggleSwitch.  The location where you can find the example is: START >> All Programs >> Telerik >> UI for WinForms [version] >> Examples >> C# for Visual Studio 2010 >> Open C# Demo Application in Visual Studio - UI for WinForms. The example for selection is in Buttons >> ToggleSwitch.

    If you want to customize RadToggleSwitch you can set the OffElement and OnElement properies. Here is a code snippet: 
    this.radToggleSwitch2.ToggleSwitchElement.OnElement.Image = Properties.Resources.add;
    this.radToggleSwitch2.ToggleSwitchElement.OnElement.Text = "";
     
    this.radToggleSwitch2.ToggleSwitchElement.OffElement.Image = Properties.Resources.delete;
    this.radToggleSwitch2.ToggleSwitchElement.OffElement.Text = "";
      
    In the attachment you can find a sample demo. 

    I hope this will help. Do not hesitate to write back with further questions.

    Regards,
    Ralitsa
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top