Skip to content

ListBoxMarkupExtensions.SelectedItem<T> method

Sets the currently selected item object.

public static T SelectedItem<T>(this T target, object? value)
where T : ListBox
parameter description
T Receiver type.
target Target ListBox.
value Value assigned to SelectedItem.

The same element for chaining.

Sets: ListBox.SelectedItem