Thank you for contacting us.
You can set the size of a RadButton through theme using the following steps:
1. Open Visual Style Builder and load the theme you would like to use. In case you would like to change a predefined theme please have a look at this article: Loading predefined themes
2. In the Controls Structure pane navigate to RadButton >> RadButtonElement
and select the RadButtonElement
3. In the Elements
pane expand the RadButtonElement
node and find the MinSize
property. Set it to the size you find appropriate for your scenario.
4. Save the theme and load it in your application. Here are several articles that might be helpful:
Saving and Loading Theme Files
Loading Themes from an External File
Loading Themes from a Resource
Applying Theme to a Control
5. Add a line to your code that sets the AutoSize
property of the RadButton control to true
. Here is a sample snippet:
The attached sample project demonstrates the aforementioned approach. I hope you will find it helpful.
Let me know if you have any further queries.
the Telerik team