RibbonWinForms icon indicating copy to clipboard operation
RibbonWinForms copied to clipboard

Inherit from RibbonLabel and set background and font?

Open cryo75 opened this issue 7 years ago • 1 comments

I need to inherit from RibbonLabel and override methods so that I can draw text in bold and the background in a different color.

However, I couldn't find any Font property to use.

Where and how can I access the Font and BackColor properties for the inherited control?

cryo75 avatar Aug 18 '18 17:08 cryo75

This is not done yet. As a temporary workaround (alternative solution), you can use an ordinary winform lable control, set the font. then add it into the ribbon by using "Host" control".

The following is a sample project that demonstrated the idea: WindowsFormsApp1.zip

adriancs2 avatar Aug 19 '19 15:08 adriancs2