30 lines
989 B
XML
30 lines
989 B
XML
<?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>
|