I'm writing a Windows GUI application using WPF and I found myself in a situation where the list style of Task Manager would best suit my needs.
What I specifically like is how subprocesses are TreeView-style nested in main processes
I would have just gone with a TreeView but two functionalities I find myself really needing is the ability to hover highlight over the entire width of the View
and how Item information remains aligned with the List Header
One nice side feature as will is the chevron on the right side and how it behaves exactly like a normal TreeView.
For the purposes of this project I can't use any other Component libraries and need to keep it to just WPF and .NET 4.7.1.
Any help pointing in the right direction of how to design a UI like this would be appreciated.
I've already tried messing with HierarchicalDataTemplate
and StackPanel
s but I can't seem to find the right combination, though I could be missing something. I also tried modifying the ItemContainerStyle
of the TreeView with no success:
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</TreeView.ItemContainerStyle>