TreeView should expose Header/Footer properties and make use of underlying ListView #8451
Labels
bug
Something isn't working
feature proposal
New feature proposal
team-Controls
Issue for the Controls team
wct
Describe the bug
TreeView's template uses a
TreeViewList
:microsoft-ui-xaml/dev/TreeView/TreeView.xaml
Lines 36 to 48 in 0e2d882
Which is just a
ListView
:microsoft-ui-xaml/dev/TreeView/TreeView.idl
Lines 101 to 104 in 0e2d882
ListView
has aHeader
andFooter
property available like most XAML controls; however, TreeView does not.TreeView
should getHeader
andFooter
properties and they should just be template bound to the underlyingTreeViewList
in the default template.This would make moving from ListView/ItemsControl to TreeView easier as they would all support the Header/Footer property like most XAML controls. Came about from my exploration of applying my
DataTable
experiment to aTreeView
, needed to do this manually in a sub-class, but it should be just built-in to the WinUI 2/3 versions of this control instead. Should be a straight-forward add-on. See: CommunityToolkit/Labs-Windows#415Steps to reproduce the bug
TreeView
in XAMLHeader
property...Expected behavior
Should have standard
Header
/Footer
properties like other XAML controls, makes it easier to have consistent UI and styling when creating various layouts and/or form-style UI.Screenshots
No response
NuGet package version
WinUI 2 - Microsoft.UI.Xaml 2.8.2
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: