问题
I am trying to create a Treeview dynamically in Windows Phone 8 from the json response from my server. This json response is nested to nested like a question asked in stackoverflow. I am very confused what approach me should use, i have deseriazlied my json object but how and where to map on xaml page ? Please suggest me what Data Structure should me use Treeview / ExpanderView / CollectionViewSource or any other Data Sturcture. My json is like following
>Peter
- - >user1
- - >user2
- - >user3
- - >userPassword
- - >userId
- - > Regional
- - > Zonal
- - >permission
>john
>david
>Jack
- - >user1
- - >user2
- - >userpassword
- - >userId
- - >Permissions
>Laura
- - > admin
- - > permissions
-- > user1
-- > user2
- - >userpassword
- - >userId
- - >Permissions
- - > Admin
- - > SuperAdmin
>...
>...
>...
来源:https://stackoverflow.com/questions/23907020/dynamically-create-a-treeview-in-windows-phone-8-from-json-data