Dynamically create a treeview in windows phone 8 from Json data

落爺英雄遲暮 提交于 2019-12-12 02:13:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!