트리뷰 구현에 대해서 여쭤봅니다

ParentStyle

  • Treeview 대신 ListBox로 변경하시고
  • TreeVIew ItemsContainerStyle에 ListBoxItem으로 변경

ChildeStyle

  • TargetType를 TreeviewItem 대신 ListBoxItem으로 변경
  • Trigger의 IsExpanded 대신 IsSelected로 변경

위 처럼 구현하실 경우엔 Select라는 역할은 신경안쓰셔도됩니다!

Screenshot 2024-01-05 at 11.33.38
만일 Parent들간의 Childern select가 필요하시다면은 필요하실꺼같네요!

2개의 좋아요