简体   繁体   中英

How to delete border in ViewCell From Xamarin.Forms?

I can not remove the border in the ListView. Here is a photo. enter image description here

ListView provides the SeparatorVisibility property to get or set a value that tells whether separators are visible between items.

Set the SeparatorVisibility property to None would remove the separator lines in Listview.

  <ListView SeparatorVisibility="None">
        <ListView.ItemsSource>
            <x:Array Type="{x:Type x:String}">
                <x:String>mono</x:String>
                <x:String>monodroid</x:String>
                <x:String>monotouch</x:String>
                <x:String>monorail</x:String>
                <x:String>monodevelop</x:String>
                <x:String>monotone</x:String>
                <x:String>monopoly</x:String>
                <x:String>monomodal</x:String>
                <x:String>mononucleosis</x:String>
            </x:Array>
        </ListView.ItemsSource>
    </ListView>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM