You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ListView style differs between Skia and WinUI #17231
area/listview 📃Categorizes an issue or PR as relevant to the ListView controlarea/porting 🖨️Categorizes an issue or PR as relevant for porting of WinUI codearea/skia ✏️Categorizes an issue or PR as relevant to Skiadifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
This feels like the styles available from the WinUI sources have changed in recent versions, or it may be a change included from the ListViewItemPresenter. It would be interesting to see if the expanded ListViewItem template also has that style.
I'm not able to go past WinUI 1.4, but it is in 1.4. The feature is actually a bool property resource on the ListView called ListViewItemSelectionIndicatorVisualEnabled. The ListViewItem uses that value.
area/listview 📃Categorizes an issue or PR as relevant to the ListView controlarea/porting 🖨️Categorizes an issue or PR as relevant for porting of WinUI codearea/skia ✏️Categorizes an issue or PR as relevant to Skiadifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Activity
jeromelaban commentedon Jun 25, 2024
This feels like the styles available from the WinUI sources have changed in recent versions, or it may be a change included from the
ListViewItemPresenter. It would be interesting to see if the expandedListViewItemtemplate also has that style.ArchieCoder commentedon Jun 26, 2024
I'm not able to go past WinUI 1.4, but it is in 1.4. The feature is actually a bool property resource on the ListView called ListViewItemSelectionIndicatorVisualEnabled. The ListViewItem uses that value.
https://github.com/microsoft/microsoft-ui-xaml/blob/winui3/release/1.4-stable/controls/dev/CommonStyles/ListViewItem_themeresources.xaml#L256
MartinZikmund commentedon Feb 2, 2025
This is also a problem when one overrides the default style to set alignment:
This will break Uno Platform's targets'
ListViewsignificantly (selection, etc. stops working), because the base style does not exist.Ensure selection works correctly in Uno Platform targets
51 remaining items
test(listview): Update tests for presenter default style
feat(gridview): Use the item presenter in default style
feat(listview): Use ListViewItemPresenter in default style
test(listview): Update tests for presenter default style
feat(gridview): Use the item presenter in default style
feat(listview): Use ListViewItemPresenter in default style
test(listview): Update tests for presenter default style
feat(gridview): Use the item presenter in default style
feat(listview): Use ListViewItemPresenter in default style
test(listview): Update tests for presenter default style
feat(gridview): Use the item presenter in default style
feat(listview): Use ListViewItemPresenter in default style
test(listview): Update tests for presenter default style
feat(gridview): Use the item presenter in default style