Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Binding entry to label in listview

$
0
0

I fill a Listview from a firebase database , no problem there .

But is it possible to bind 1 label in that listview to a Entry ?
The Entry with the name ""Keuze" . The text in the Entry is not coming from the database but the user is filling this in on the page.

When they filled in the Entry i load the listview

I Want to bind it to this Label in the Listview

   <Label Grid.Row="0"
                           Grid.Column="1"
                               HorizontalOptions="Center"    
                        **   Text="{Binding Adres}"**
                                    TextColor="#302C2C"
                           VerticalOptions="Center" />

 <ListView   AbsoluteLayout.LayoutBounds=".15,.55,.95,.70" AbsoluteLayout.LayoutFlags="All" 
                 BackgroundColor="Transparent"
                   ItemSelected="lstBal_ItemSelected"
         ItemsSource="{Binding Adresclub}"
      x:Name="lstBal"
                 IsPullToRefreshEnabled="False"
          HasUnevenRows="true"
                 Footer=""
                    Margin="20"
            HorizontalScrollBarVisibility="Always"
                                VerticalScrollBarVisibility="Default">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>

                        <Grid Padding="30">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                  <ColumnDefinition Width="Auto" />

                            </Grid.ColumnDefinitions>
                            <Image Grid.RowSpan="2"
                           Source="{Binding Tegenstander}"
                           Aspect="AspectFit"
                                   HorizontalOptions="Center"
                           HeightRequest="50"
                           WidthRequest="50">

                            </Image>                   

                            <Label Grid.Row="0"
                           Grid.Column="1"
                               HorizontalOptions="Center"    
                           Text="{Binding Adres}"
                                    TextColor="#302C2C"
                           VerticalOptions="Center" />

                              <Label Grid.Row="2"
                           Grid.Column="1"
                                  HorizontalOptions="Center"     
                           Text="{Binding Voetbal}"
                                     FontAttributes="Bold"
                                    TextColor="#302C2C"
                           VerticalOptions="Center" />


                        </Grid>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>