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
110
Binding a sorted dictionary to xamdatatree
posted

I'm trying to explore what is the best way to bind and sorted dictionary collection to xamdatatree.

My goal is to index student names by alphabets for each school.

My data tree should look like - 

School Name1

    - A

        - Ash

        - Asta

        - Arod

        - Azura

    - B

        - Bobby

        - Bpranden

        - Bxosch

School Name2

    - A

        - Astro

        - Atrak

    - K

        - Krak

        - Ktul

My class is :

public class School

{

 public string Name { get; set; }

 public SortedDictionary<char, string> StudentNameByIndex { get; set}

}