Articles in this section

How to control the size of highlighted rectangle and spacing between the icons in WinForms PopupMenu?

Spacing between icons and size of highlighted rectangle

Two properties "PaddingForThemesX " and "PaddingForThemesY" of baritems can be used for this. But, the ThemesEnabled property of MainframeBarManager must be set to true.

1. PaddingForThemesX - Controls the width of focus rectangle and spacing between the icons.

2. PaddingForThemesY - Controls the height of toolbar relative to the size of rectangle.

C#

this.barItem3.PaddingForThemesX=20;
this.barItem3.PaddingForThemesY=30;

VB

Me.barItem1.PaddingForThemesX=20
Me.barItem1.PaddingForThemesY=30

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied