开发者

Parent Child Relationship UI

开发者 https://www.devze.com 2022-12-15 10:36 出处:网络
Consider the following Parent/Child relationship.What I would like to know is how I would go about creating a GUI for this with t开发者_StackOverflow社区he following requirements:

Consider the following Parent/Child relationship. What I would like to know is how I would go about creating a GUI for this with t开发者_StackOverflow社区he following requirements:

  1. All Parents or children will contain an image a label and a couple of buttons
  2. Parents will be collapse able
  3. New Parents/Children can be added at any time

I was thinking about using an ItemsControl but am unsure how I would get the nesting to work correctly.

Parent 1  
|-Parent 2  
|-Parent 3  
|--P3 Child 1  
|--P3 Child 2  
|--P3 Child 3  
|---P3 C3 Child 1  
|---P3 C3 Child 2  


A TreeView seems like the most obvious control for this. It allows you to have nested items, and easy parent and child relationships.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号