👚
A dropdown list. Inherited from Button
- DefaultProperty:Text
- DefaultEvent:SelectedValueChanged
| Name | Description | Type | Default Value |
|---|---|---|---|
| ListAutoWidth | List automatic width | bool | true |
| Trigger | Trigger dropdown behavior | Trigger | Click |
| Placement | Menu pop-up location | TAlignFrom | BL |
| MaxCount | Maximum of displayed items in the list | int | 4 |
| DropDownRadius | Pull down rounded corner | int? |
null |
| DropDownArrow | Is the dropdown arrow displayed | bool | false |
| DropDownPadding | Pull down margin | Size | 12, 5 |
| DropDownTextAlign | Dropdown text alignment | TAlign | Left |
| ClickEnd | Click to the end | bool | false |
| Empty | Drop down even if empty | bool | false |
| Items | Data More Styles | BaseCollection | - |
| SelectedValue | Selected value | object? |
null |
| Name | Description | Return Value | Parameters |
|---|---|---|---|
| SelectedValueChanged | Occurred when the SelectedValue property value is changed | void | object? value |
| ItemClick | Occurs when an item is clicked | void | object? value Clicked item |
| DrawItem | Triggered before child item external rendering | bool Whether rendering was handled |
DrawItemEventArgs e Event parameters, including canvas, rectangle, item information, etc. |