Please could you help to get multiple values grouping implemented properly?
I need to group a set of instances by groups. Some instances belong to multiple groups.
I have used listbox and GroupDescriptions for that.
Those instances that belong to several groups are shown as duplicates (like in Outlook when letter belongs to several categories).
But selection of items becomes buggy.
Even if ListBox SelectionMode is Single, it is possible to get two different items (not duplicates) to be selected simultaniously.
Please use my code example.
Launch application Put check into checkbox to apply grouping. Select Potato(Tasty). Select Tomato(Round). Select Potato(Tasty). Select Tomato(Round). Notice that Potato(Tasty) and Tomato(Round) are selected simultaniously.
<TextBlock Margin="12,5,5,0" FontSize="20" Text="My Task List"/>
<CheckBox Margin="10,5,5,10" Checked="AddGrouping"
Unchecked="RemoveGrouping">Group by task type</CheckBox>
View Complete Post