Xamarin.forms: [Bug] [UWP] Item Spacing still exists even when ItemSpacing is 0

Created on 6 Oct 2019  路  5Comments  路  Source: xamarin/Xamarin.Forms

Description

Item Spacing still exists even when ItemSpacing is 0

Steps to Reproduce

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:local="clr-namespace:WhereIsImage"
             mc:Ignorable="d"
             x:Class="WhereIsImage.XF">
    <CollectionView BackgroundColor="Blue">
        <CollectionView.ItemsSource>
            <x:Array Type="{x:Type x:String}">
                <x:String>Baboon</x:String>
                <x:String>Capuchin Monkey</x:String>
                <x:String>Blue Monkey</x:String>
                <x:String>Squirrel Monkey</x:String>
                <x:String>Golden Lion Tamarin</x:String>
                <x:String>Howler Monkey</x:String>
                <x:String>Japanese Macaque</x:String>
            </x:Array>
        </CollectionView.ItemsSource>
        <CollectionView.ItemsLayout>
            <GridItemsLayout Orientation="Vertical" Span="1" HorizontalItemSpacing="0" VerticalItemSpacing="0" />
        </CollectionView.ItemsLayout>
        <CollectionView.ItemTemplate>
            <DataTemplate>
                <Label Text="{Binding}" BackgroundColor="AliceBlue"/>
            </DataTemplate>
        </CollectionView.ItemTemplate>
    </CollectionView>
</ContentPage>

Expected Behavior

No spacing exists between items

Actual Behavior

Spacing exists

Basic Information

  • Version with issue: 4.2
  • Last known good version: Idk
  • IDE: VS16.3.2
  • Platform Target Frameworks:

    • UWP: 17134

  • Affected Devices: My PC

Screenshots

image

Reproduction Link

WhereIsImage2.zip

collectionview 3 in-progress UWP bug

Most helpful comment

@jfversluis @jsuarezruiz Fixed with #8839.

All 5 comments

Also making the item spacing bigger seems to have no effect. Looks like this isn't built yet or doesn't work properly.

cc: @jsuarezruiz

LinearItemsLayout also has the same problem.

@jfversluis @jsuarezruiz Fixed with #8839.

Great work @velocitysystems! Thanks for the effort :)

closed by #8839

Was this page helpful?
0 / 5 - 0 ratings