2018-04-16 05:55:23 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-03-22 19:16:11 +00:00
|
|
|
<ContentPage
|
|
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="Samples.RefreshListView">
|
|
|
|
<ContentPage.Content>
|
|
|
|
<StackLayout>
|
|
|
|
<ListView
|
2018-04-16 05:55:23 +00:00
|
|
|
x:Name="list"
|
2018-03-22 19:16:11 +00:00
|
|
|
ItemsSource="{Binding Data}"
|
|
|
|
HeightRequest="200">
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ViewCell>
|
|
|
|
<Label
|
|
|
|
Text="{Binding .}" />
|
|
|
|
</ViewCell>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
</ListView>
|
|
|
|
<StackLayout>
|
|
|
|
<Entry
|
|
|
|
Text="{Binding Input}" />
|
|
|
|
<Button
|
|
|
|
Text="Add Item"
|
2018-04-16 05:55:23 +00:00
|
|
|
Command="{Binding AddCmd}"
|
|
|
|
Clicked="Handle_Clicked"/>
|
2018-03-22 19:16:11 +00:00
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</ContentPage.Content>
|
|
|
|
</ContentPage>
|