Create Event Handler for TreeViewItem in WPF

后端 未结 4 1930
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 05:22

Im adding items to TreeView control via ItemsSource property and ItemTemplate property to set the template for TreeViewItem. How can i add an event handler to handle selecti

4条回答
  •  礼貌的吻别
    2021-01-06 05:47

    You'll need to add an event handler to the TreeView's SelectedItemChanged event.

    
                                                            
提交回复
热议问题