We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform
Describe the bug The value of ItemSpacing is set to 0 but there is still space between the cells.
To Reproduce xaml:
<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:sh="http://sharpnado.com" x:Class="Test.TestPAge"> <ContentPage.Resources> <DataTemplate x:Key="CellTemplate"> <ViewCell> <Label BackgroundColor="LightCoral" TextColor="Black" Margin="0" Padding="0" HeightRequest="40" Text="{Binding .}" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" /> </ViewCell> </DataTemplate> </ContentPage.Resources> <ContentPage.Content> <AbsoluteLayout BackgroundColor="White"> <sh:HorizontalListView x:Name="listview" ItemHeight="40" ItemTemplate="{StaticResource CellTemplate}" ItemSpacing="0" BackgroundColor="LightSeaGreen" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" ListLayout="Vertical" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1" /> </AbsoluteLayout> </ContentPage.Content> </ContentPage>
codebehind:
using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Test { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class TestPAge : ContentPage { public TestPAge() { InitializeComponent(); listview.ItemsSource = new[] { "Eintrag 1", "Eintrag 2", "Eintrag 3", "Eintrag 4" }; } } }
Screenshots
The text was updated successfully, but these errors were encountered:
should go away with next version
Sorry, something went wrong.
No branches or pull requests
Platform
Describe the bug
The value of ItemSpacing is set to 0 but there is still space between the cells.
To Reproduce
xaml:
codebehind:
Screenshots
The text was updated successfully, but these errors were encountered: