This is a migrated thread and some comments may be shown as answers.
how to change toolstrip item's size
1 Answer 65 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
codicezerouno
Top achievements
Rank 1
codicezerouno asked on 26 Mar 2010, 09:43 AM
Simply, I need to make a toolstrip with large imagebuttons, for example 30x30, and I need to have more space between buttons.

How to do it? Thank you.

Stefano.

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Vasilev
Telerik team
answered on 31 Mar 2010, 03:39 PM
Hi Stefano Cadò,

Thank you for writing.

Actually, by default, the RadToolStrip items set their size according to their content. So, if you have an image button element with 30x30 image, RadToolStrip will increase its size to handle the bigger bitmap. If you want to put some additional space between the button elements you can use Padding property. And if you prefer to set some fixed minimal size you can do it through ToolStrip item's MinSize property:
this.radToolStripItem1.MinSize = new Size(0, 50);
this.radImageButtonElement1.Padding = new Padding(5);

I hope this helps, let me know if you have any other questions.

Regards,
Martin Vasilev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Asked by
codicezerouno
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or