Files to look at:
- frmMain.cs (VB: frmMain.vb)
- RibbonLogoHelper.cs (VB: RibbonLogoHelper.vb)
- Program.cs (VB: Program.vb)
This example demonstrates how to create a helper component that allows drawing a logo at the right side of the RibbonControl.
IMPORTANT: Starting with v16.2, RibbonControl provides the RibbonControl.Image Property that allows you to put a background image to the control. If the built-in alignment options aren't enough for you, use this example.
To use this helper in your project, drop it onto the form from the Visual Studio ToolBox (you need to rebuild the project first). Then, set the RibbonControl and Image properties. If you wish to provide more complex logic, for example, draw this logo on a specific Ribbon page, go to the RibbonLogoHelper.DrawRibbonLogo method and add the required condition there.