View Issue Details

IDProjectCategoryView StatusLast Update
0003694NoesisGUIUnitypublic2026-04-27 12:17
ReporterCatBytesAndCoffeeAi Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version3.2 
Target Version3.2.14 
Summary0003694: ListBox cannot use ItemsSource of Dictionary<TKey, TValue>
Description

When using a Dictionary<TKey, TValue> as the ItemsSource for a ListBox the ListBox does not display any items and does not report an error. WPF w/ .NET Framework 4.8 allows this use.
When binding to a Dictionary directly WPF uses ToString for the Dictionary entry. You can use the Key or Value from the dictionary in the list, as well:
<ListBox
ItemsSource="{Binding DataDictionary}"
DisplayMemberPath="Key"
SelectedValuePath="Key"

I tried using ListView with GridView as a workaround, but the data binding there also does not appear to be able to use a Dictionary.

I have a workaround for this, which is to use an IValueConverter to convert the Dictionary to a List<string>.

Steps To Reproduce

A project that reproduces the issue is attached. The source needs some NuGet packages to fully build
A screenshot of Unity and the Windows app is also attached.

Attached Files
ListWithDictionary.zip (751,307 bytes)
NoesisListBoxDictionary.png (69,585 bytes)   
NoesisListBoxDictionary.png (69,585 bytes)   
PlatformAny

Activities

Issue History

Date Modified Username Field Change
2024-09-10 18:07 CatBytesAndCoffeeAi New Issue
2024-09-10 18:07 CatBytesAndCoffeeAi File Added: ListWithDictionary.zip
2024-09-10 18:07 CatBytesAndCoffeeAi File Added: NoesisListBoxDictionary.png
2024-09-10 22:31 CatBytesAndCoffeeAi Description Updated
2024-09-11 12:51 jsantos Assigned To => jsantos
2024-09-11 12:51 jsantos Status new => assigned
2024-09-11 12:51 jsantos Target Version => 3.2.5
2024-09-11 12:51 jsantos Assigned To jsantos => sfernandez
2024-10-24 16:43 sfernandez Target Version 3.2.5 => 3.2.6
2024-11-22 18:18 jsantos Target Version 3.2.6 => 3.2.7
2025-01-20 17:43 jsantos Target Version 3.2.7 => 3.2.8
2025-06-06 12:52 jsantos Target Version 3.2.8 => 3.2.9
2025-10-02 00:48 jsantos Target Version 3.2.9 => 3.2.10
2025-10-10 13:29 jsantos Category Unity3D => Unity
2025-10-20 18:25 jsantos Target Version 3.2.10 => 3.2.11
2026-01-20 19:32 jsantos Target Version 3.2.11 => 3.2.12
2026-03-04 00:39 jsantos Target Version 3.2.12 => 3.2.13
2026-04-27 12:17 jsantos Target Version 3.2.13 => 3.2.14