Forum Xamarin.Forms

why is not view showing in the code below

AustyAusty Member ✭✭✭
edited July 2019 in Xamarin.Forms

why is my the label and collectionview not showing in the codd below.

<StackLayout >
 <Label Text="New &amp; Trending"        
        HorizontalTextAlignment="Center" 
        TextColor="Black"
        FontAttributes="Bold"/>        
<CollectionView ItemsSource="{Binding sliders}" 
                VerticalOptions="EndAndExpand">
    <CollectionView.ItemTemplate>
        <DataTemplate>
            <Grid Padding="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Image Grid.RowSpan="2"
                       Source="{Binding Url}"
                       Aspect="AspectFill"
                       HeightRequest="60"
                       WidthRequest="60" 
                       Grid.Row="0"/>              
            </Grid>
        </DataTemplate>
    </CollectionView.ItemTemplate>
</CollectionView>    
  </StackLayout>

Best Answer

Answers

Sign In or Register to comment.