ListView doesn´t show separators between list items in Windows, but it does show on Android. iOS??
See original GitHub issueDescription
ListView doesn´t show separators between list items in Windows, but it does show on Android.
I couldn´t test it on iOS.
See the ZIP with attached project…
Steps to Reproduce
Just run the attached project on Windows and on Android. If you can, please, test it on iOS… Please, see the attached image too…
`<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="ListViewBugs.MainPage">
<ScrollView>
<VerticalStackLayout>
<ListView VerticalScrollBarVisibility="Always" SeparatorVisibility="Default" SeparatorColor="Red">
<ListView.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Item #01</x:String>
<x:String>Item #02</x:String>
<x:String>Item #03</x:String>
<x:String>Item #04</x:String>
<x:String>Item #05</x:String>
</x:Array>
</ListView.ItemsSource>
</ListView>
</VerticalStackLayout>
</ScrollView>
</ContentPage>`
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
No workarounds…
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Xamarin ListView separators randomly appearing
The bug is random and can be between any items. To show the separators I do : myList.SeparatorVisibility = SeparatorVisibility.Default;. And to ......
Read more >ListView - .NET MAUI
The .NET MAUI ListView displays a scrollable vertical list of selectable data items. ListView supports displaying headers and footers, ...
Read more >ListView separator style on iOS - .NET MAUI
This article explains how to consume the .NET MAUI iOS platform-specific that controls whether the separator between cells in a ListView ...
Read more >Adding top and bottom separators with ListView.separated
ListView.separated is a handy API that we can use to add separators between items inside a Flutter ListView. According to the documentation:.
Read more >ListView class - widgets library - Dart API
API docs for the ListView class from the widgets library, for the Dart programming ... builds separator children which appear in between the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hm not sure how that was for Xamarin.Forms. In either case, you probably want to use
CollectionView
anyway!Verified this issue with Visual Studio Enterprise 17.6.0 Preview 7.0. Repro on Windows platform with sample project. Not repro on Android and iOS platform. ListViewBugs.zip.