question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ListView doesn´t show separators between list items in Windows, but it does show on Android. iOS??

See original GitHub issue

Description

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…

ListViewBugs.zip

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>`

ListViewSeparator

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:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jfversluiscommented, Jun 16, 2022

Hm not sure how that was for Xamarin.Forms. In either case, you probably want to use CollectionView anyway!

0reactions
jinxinjuancommented, May 12, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found