I have updated the design of a radtoggleswitch. This is how it looks in the VS designer . But when i run the application the look changes to . Cannot figure out why this is happening. Am i missing something here,
1 Answer, 1 is accepted
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 May 2021, 11:13 AM
Hello, Shuvrangshu,
According to the provided information, it is not clear what are the changes that you made at design time to achieve the rounded shape for RadToggleSwitch. However, if you want to achieve this design at run time, I can suggest you to use the following code snippet:
publicRadForm1()
{
InitializeComponent();
this.radToggleSwitch1.ToggleSwitchElement.Shape = new RoundRectShape(10);
this.radToggleSwitch1.ToggleSwitchElement.Thumb.Shape = new RoundRectShape(10);
}
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik