TreeList.DefaultPaintHelperChanged Event
Fires when a different paint helper is assigned to the TreeList control.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Event Data
The DefaultPaintHelperChanged event's data class is EventArgs.
Remarks
The TreeList control paints its elements by calling the methods of a specifically designed paint helper object. Such objects must support the ITreeListPaintHelper interface. This interface declares the methods used to paint particular types of elements: column headers, row footers, cells, etc. Each of these methods has a set of parameters that provide all the information required to paint the elements.
There is a predefined paint helper provided by the TreeList control. This paint helper paints elements according to the control’s look and feel settings. You can implement your own paint helper and assign it to the DefaultPaintHelper property of the TreeListPainter object returned by the Tree List’s TreeList.Painter property. After the new paint helper has been assigned, the DefaultPaintHelperChanged event is automatically raised.
Providing your own paint helper objects can be used as an alternative to handling custom draw events. Moreover, providing custom paint helpers increases the painting speed as compared to painting via event handlers. Refer to the Painters topic for more information.