Unplanned
Last Updated: 24 Jan 2024 11:34 by Francisco M.
Francisco M.
Created on: 24 Jan 2024 11:34
Category: ComboBox
Type: Feature Request
1
ComboBox: Support for visualizing dictionary values in the drop-down

When setting the ComboBox ItemsSource to be Dictionary, the values are not displayed in the drop down.

Workaround:

The dictionary should be converted to List:

    public Dictionary<string, string> Status { get; set; } = new() { { "1", "Test" }, { "2", "hello" } };
    public IList<string> Data { get => this.Status.Values.ToList(); }

0 comments