BeforeFocusNodeEventArgs(TreeListNode, TreeListNode) Constructor
Creates an instance of the BeforeFocusNodeEventArgs class.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
Declaration
Parameters
Name | Type | Description |
---|---|---|
old | TreeListNode | A TreeListNode object representing the node from which focus is shifting. This value is assigned to the FocusedNodeChangedEventArgs.OldNode property. |
node | TreeListNode | A TreeListNode object representing the node which is about to obtain focus. This value is assigned to the NodeEventArgs.Node property. |
Remarks
The TreeList.BeforeFocusNode event fires right before the focused node changes. An instance of the BeforeFocusNodeEventArgs class with predefined settings is automatically created and passed to the corresponding handler.
The BeforeFocusNodeEventArgs.CanFocus property is set to true in the constructor.