AccordionControl.SelectedElement Property
Gets or sets the currently selected item. This property is in effect if item selection is enabled with the AccordionControl.AllowItemSelection property.
Namespace: DevExpress.XtraBars.Navigation
Assembly: DevExpress.XtraBars.v22.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Default | Description |
---|---|---|
AccordionControlElement | null | The currently selected element. |
Remarks
Items (elements whose AccordionControlElement.Style properties are set to Item) support the selected state, provided that the AccordionControl.AllowItemSelection property is enabled. A selected item is highlighted as specified by the current skin. Use the SelectedElement property or the AccordionControl.SelectElement method to select a certain element in code.
An end-user can select an item by clicking its header.
Note
Groups (elements whose AccordionControlElement.Style property is set to Group) do not support the selected state. Thus, they cannot be selected with the SelectedElement property, nor with the AccordionControl.SelectElement method.
To respond to changing the selected item, handle the AccordionControl.SelectedElementChanged event.