Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

[XAML] ListView items not appearing

$
0
0

Hey guys,

I set this Labels associated with the ListViews. When you tap the Label, the ListView should appear with its options.

But when I tap the Label, the ListView opens empty, with none of its items showed up. I'm new to Xamarin and XAML, could you help me to find where I missed it? Here's the Labels and ListViews:

`

            <Label FontSize="Medium" Grid.Row="3" Grid.Column="0" Text="Chq" x:Name="lbl_chq" /> 
            <ListView Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="4" IsVisible="false" x:Name="list_chq">
                <Grid>
                    <Grid.RowDefinitions> <RowDefinition Height="100"/> </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /><ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions>
                    <Entry Placeholder="Lcr" Grid.Row="0" Grid.Column="0"/>
                    <Entry Placeholder="Vlr" Grid.Row="0" Grid.Column="1"/>
                </Grid>
            </ListView>

            <Label FontSize="Medium" Grid.Row="5" Grid.Column="0" x:Name="lbl_otrs" Text="Otrs"/> 
            <ListView Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="4" IsVisible="false" x:Name="list_otrs">
                <Grid>
                    <Grid.RowDefinitions> <RowDefinition Height="100"/> </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /><ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions>
                    <Entry Placeholder="Lcr" Grid.Row="0" Grid.Column="0"/>
                    <Entry Placeholder="Vlr" Grid.Row="0" Grid.Column="1"/>
                </Grid>
            </ListView>

`


Viewing all articles
Browse latest Browse all 75885

Trending Articles