Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Grouping with xamTabControl
posted

Hi, I have a CollectionView for grouping a list of objects.

Now I want to use the xamTabControl, to show the groups on a window with groupnames in Tabheader.

Is it able to do that with the xamTabControl, and how to do?

 

best regards from germany

Parents
No Data
Reply
  • 9694
    Verified Answer
    posted

    I've attached a sample VS2008 WPF project that illustrates one approach to this scenario. In the sample, I created a test data collection. I added a string property called header and made sure that the test data had items with duplicate Header names. I then added a ViewModel and in the ViewModel, I create a collection of collections grouped by Header name. I bound the collection of grouped items to the XamTabControl. Each tab control contains a XamTilesControl which displays each group of items.

    Let me know if this helps.

    Thanks

    TabControlSample.zip
Children