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

RadToggleSwitch - how to change style

1 Answer 275 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 24 Jun 2015, 07:26 PM

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.

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 25 Jun 2015, 08:31 AM
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
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Ralitsa
Telerik team
Share this question
or