CustomDrawObjectEventArgs.Handled Property

Gets or sets a value specifying whether the control must perform default painting after an event handler has been executed.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v21.2.dll


public virtual bool Handled { get; set; }

Property Value

Type Description

true if the control doesn’t perform default object painting after an event handler has been executed; otherwise false.


Events, for which the CustomDrawObjectEventArgs class provides data, fire before a corresponding object is painted. If an event handler sets the Handled property to true, default object painting is not performed. Otherwise the control will paint the object using its default after the handler has been executed.

This property can be used, for instance, to apply custom drawing only to those objects, which satisfy some specific conditions.

See Also