I need something just like this:
(I need both the TreeView and the ListView aspects. That is, Hirearchy and Columns.)
But, I need it in WPF. is thi
This one works like a charm for me. https://www.codeproject.com/Articles/30721/WPF-TreeListView-Control
public ITreeModel TreeModel
{
get => (ITreeModel)GetValue(TreeModelProperty);
set => SetValue(TreeModelProperty, value);
}
public static readonly DependencyProperty TreeModelProperty =
DependencyProperty.Register(
"TreeModel",
typeof(ITreeModel),
typeof(TreeList),
new PropertyMetadata(null, OnModelChanged));
private static void OnModelChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var treeList = (TreeList) d;
treeList.Root.Children.Clear();
treeList.Rows.Clear();
treeList.CreateChildrenNodes(treeList.Root);
}