Open kazo0 opened 2 months ago
ChipGroup\Chip suffers the same problem
Both ChipGroup and TabBar inherits from ItemsControl, and both override GetContainerForItemOverride+IsItemItsOwnContainerOverride. This handles the case where the Items or ItemsSource contains the proper type for its item "container". However, it does not support the case where the supposed "container" is coming from the result of ItemTemplate.
That said, ListView and ListViewItem works... both on Windows and Uno somehow... On Uno, this is done via ItemsControl::GetRootOfItemTemplateAsContainer implemented in Selector. It is unclear how Windows is handling this..?
With the following XAML
We should be seeing this:
Instead, we are seeing that that TabBar now contains TabBarItems that contain the red TabBarItem as it's content: