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

30 lines
989 B
Plaintext
Raw Normal View History

<?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
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"
Command="{Binding AddCmd}" />
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>