Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
How can I center image and text of RadMenuItem when AutoSize is false? See attached screenshot.
Thanks..
this
.radMenuItem2.AutoSize =
false
;
.radMenuItem2.Size =
new
Size(100, 40);
.radMenuItem2.Layout.TextPanel.AutoSize =
.radMenuItem2.Layout.TextPanel.Size =
Size(80,15);
TextPrimitive txt =
.radMenuItem2.Layout.TextPanel.FindDescendant<TextPrimitive>();
txt.TextAlignment = ContentAlignment.MiddleCenter;
txt.StretchHorizontally =
true
.radMenuItem2.TextImageRelation = TextImageRelation.ImageAboveText;
.radMenuItem2.ImageAlignment = ContentAlignment.MiddleCenter;
Hi Mam,
This is great, it's solved my problem. Thank you so much!
--Renbert