Articles in this section
Category / Section

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

1 min read

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)
Please sign in to leave a comment
Access denied
Access denied