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

BeforeFocusNodeEventArgs Class

Provides data for the TreeList.BeforeFocusNode event.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public class BeforeFocusNodeEventArgs :
    FocusedNodeChangedEventArgs

#Remarks

The TreeList.BeforeFocusNode event fires when a node is about to obtain focus. The BeforeFocusNodeEventArgs class gives you information about the previously focused node and the node which is about to be focused. This information can be obtained via the inherited NodeEventArgs.Node and FocusedNodeChangedEventArgs.OldNode properties. The BeforeFocusNodeEventArgs.CanFocus property allows you to specify whether the node can obtain focus.

Instances of the BeforeFocusNodeEventArgs are automatically created, modified and passed to TreeList.BeforeFocusNode event handlers.

#Inheritance

See Also