Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual bool Handled { get; set; }

#Property Value

Type Description
Boolean

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

#Remarks

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