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