Created
April 7, 2020 15:02
-
-
Save mfkl/075667989ed2af9940e6fdd48e1689e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackLayout> | |
<ListView x:Name="ItemsListView" | |
ItemsSource="{Binding Items}" | |
VerticalOptions="FillAndExpand" | |
HasUnevenRows="true" | |
RefreshCommand="{Binding LoadItemsCommand}" | |
IsPullToRefreshEnabled="true" | |
IsRefreshing="{Binding IsBusy, Mode=OneWay}" | |
CachingStrategy="RecycleElement" | |
ItemSelected="OnItemSelected"> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<StackLayout Padding="10"> | |
<Label Text="{Binding Name}" | |
LineBreakMode="NoWrap" | |
Style="{DynamicResource ListItemTextStyle}" | |
FontSize="16" /> | |
<Label Text="{Binding Type}" | |
LineBreakMode="NoWrap" | |
Style="{DynamicResource ListItemDetailTextStyle}" | |
FontSize="13" /> | |
</StackLayout> | |
</ViewCell> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> | |
</StackLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment