Quantcast
Viewing all articles
Browse latest Browse all 7205

How to implement the CustomDraw event for bar items

This example demonstrates how to implement the custom draw functionality for bar items. To implement this, we created a custom BarAndDockingController descendant with the CustomDraw event.

This event is raised when each of bar items in BarManager is drawn and allows you to draw anything you want over the default content. Using this approach, it's easy to add the custom draw functionality to your project, because you don't even need to create a custom BarManager. Just drop our BarAndDockingController and assign it to the BarManager.Controller property.

NOTE: This example is OBSOLETE starting with v14.2 since this functionality is available out of the box. Use the BarManager.CustomDrawItem event.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>