The new TXTextControl.Windows.Forms.ResourceProvider class provides access to all high resolution images used in the built-in ribbon tabs and toolbars. Additionally, the ResourceProvider returns other built-in resources such as item descriptions and tooltips. This gives you access to a vector-based icon set with 800+ illustrations for our integrated button and ribbon bars. Depending on the selected DPI, the pixel-perfect bitmap in the requested size and resolution is returned for all various ribbon tabs and groups.

This way, you can use all TX Text Control resources in other user interface elements (such as the mini toolbar) to provide a consistent user experience.

The following code is used to create a new ribbon group with a button in the mini toolbar which is part of TX Text Control. A print button is inserted that prints the current document.

Loading...

The TXTextControl.Windows.Forms.ResourceProvider.GetSmallIcon method accepts the string identifier of the requested resource and the second parameter defines the required resolution. In the Form1 constructor, the DpiX property of a created Graphics object returns the current system resolution.

This way, the ResourceProvider always returns a pixel-perfect image based on the current resolution.

Custom MiniToolbar