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

WPF grouping

$
0
0

Hi,

I'm having a problem with the visual implementation of a list containing groups (well technically speaking it is the list's default view which contains the grouping definition).

So assume, for example, I have a collection called 'myCollection'. The elements contained in this collection have 2 properties (among other things): 'Criteria1' and 'Criteria2'.

I am adding 2 property group descriptions to the default view's GroupDescriptions collection using the 2 properties 'Criteria1' and 'Criteria2'.

Now, the actual issue I am trying to solve is: I want to be able to use a different template for each grouping level. Meaning, in my case, I want to have a tab control whose tab pages represent the result of grouping by 'Criteria1' and the content of each tab page would be a list box grouping by 'Criteria2'.

Would that be possible?

Thank you,

Cristian


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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