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

how to retrieve data(entry, label ) from listview and display in another page?

$
0
0

Model...
namespace CafeMgmt.Models
{
public class Item_Model
{
public string Id { get; set; }
public string Title { get; set; }
public string Price { get; set; }
public string Quantity { get; set; }

}

}

View...(XAML)

<ListView.ItemTemplate>




                    <Label x:Name="lbl_price"
                           Text="{Binding Price}"
                           Margin="10,10,10,0"
                           WidthRequest="60"
                           FontAttributes="None"
                           FontSize="14"
                           TextColor="Wheat" />

                        <Entry x:Name="qty"
                            Text="{Binding Quantity}"
                            Placeholder="qty"
                            WidthRequest="40"
                            Keyboard="Numeric"
                            TextColor="Wheat"
                            PlaceholderColor="Wheat" />

                        <Button x:Name="ok_btn" 
                            Text="ok"
                            WidthRequest="60"
                            Clicked="Ok_Clicked"/> 
                </StackLayout>
                <!--    </ViewCell.View> -->
            </ViewCell>
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>

</StackLayout>


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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