# .NET MAUI Chat `ItemPicker`

The `RadChatPicker` control provides an `ItemPickerContext` that enables you to display a list of options the end user can choose from.

`ItemPickerContext` exposes the following properties that allow you to show a list of possible options to the user:

* `ItemsSource`—Defines the data source used to generate the content of the `ItemPicker` control;
* `SelectionMode`—Defines whether users are allowed to select one or many items out of the provided `ItemsSource`;
* `SelectedItems`—Defines the currently selected items;
* `SelectedItem`—Defines the last selected item;

The following example shows how to use the `ItemPicker`

```C#
ItemPickerContext context = new ItemPickerContext
{
    ItemsSource = new List<string>() { "2 days", "5 days", "7 days", "Another period" }
};
PickerItem pickerItem = new PickerItem { Context = context, HeaderText = "Select an item" };

chat.Items.Add(pickerItem);
context.PropertyChanged += (s, e) =>
{
    if (e.PropertyName == "SelectedItem")
    {
        if (context.SelectedItem != null)
        {
            chat.Items.Remove(pickerItem);
            chat.Items.Add(new TextMessage { Author = chat.Author, Text = "" + context.SelectedItem });
        }
    }
};
```

> caption Chat with `ItemPicker`

![Telerik UI for .NET MAUI Chat ItemPicker message listing 2 days, 5 days, 7 days, and Another period](https://www.telerik.com/maui-ui/documentation/assets/c537a7180c1eee4fe07746f860b05bc5/chat-item-picker.png)

## See Also

* [ChatPicker](https://www.telerik.com/maui-ui/documentation/controls/chat/pickers/overview)
* [DatePicker](https://www.telerik.com/maui-ui/documentation/controls/chat/pickers/datepicker)
* [TimePicker](https://www.telerik.com/maui-ui/documentation/controls/chat/pickers/timepicker)
* [CardPicker](https://www.telerik.com/maui-ui/documentation/controls/chat/pickers/card-picker/overview)
