In This Article

CustomDrawElement

The CustomDrawElement class inherits FrameworkElement and provides a CustomDraw event.

By handling this event, you can draw the content of the element as if you had created a subclass of FrameworkElement and overrode the OnRender method.

This element is useful for placement in item templates where you may wish to custom draw items in an event handler.

This element is recommended for use in the Ribbon product when wanting to programmatically draw RibbonGallery or PopupGallery items.