Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Grouping in WPF Listbox

$
0
0

Hello Everyone,

Is it possible to repeat group name on each group item instead of showing only at the group header.

Eg. I have 2 groups Group1 & Group2 

Group1 contains 2 items(Item1 & Item2)

Group2 contains 2 items(Item3 & Item4)

I would like to generate output like:

Group1

Item1 Group1

Item2 Group1

Group2

Item3 Group2

Item4 Group2

Currently i am using Itemspresenter to display listbox items inside groupstyle. Is it possible to add textblock inside ItemsPresenter to display group name for each groupitem if yes then how?

Any help is really appreciated....



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>