0
我只想從TreeView中訪問選定子元素的父元素。這是一個WPF應用程序,我需要的C#代碼來獲得所選擇的孩子和父母,作爲strings.The功能是:從WPF的TreeView中讀取父元素
private void treeView1_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
{
//How to get the selected child and parents as strings
}