Ooui-tws-port/Samples/ListView/RefreshListView.xaml

32 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-04-16 05:55:23 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<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"
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"/>
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>