summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml
new file mode 100644
index 00000000..7df95596
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<local:TestContentPage xmlns="http://xamarin.com/schemas/2014/forms"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:local="clr-namespace:Xamarin.Forms.Controls"
+ x:Class="Xamarin.Forms.Controls.Issue3319">
+ <StackLayout Orientation="Vertical">
+ <ListView x:Name="listView"
+ ItemsSource="{Binding FavoriteArticles}"
+ HasUnevenRows="True"
+ IsPullToRefreshEnabled="True"
+ RefreshCommand="{Binding LoadFavoritesCommand}"
+ IsRefreshing="{Binding IsBusy, Mode=OneWay}"
+ >
+ <ListView.ItemTemplate>
+ <DataTemplate>
+ <ViewCell >
+ <ViewCell.ContextActions>
+ <MenuItem Clicked="OnDelete" CommandParameter="{Binding .}"
+ Text="Delete" IsDestructive="True" />
+ </ViewCell.ContextActions>
+
+ <Grid Padding="10,5">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <StackLayout Grid.Column="1"
+ Padding="5"
+ Spacing="1"
+ VerticalOptions="Center">
+ <Label Text="{Binding ArticleTitle}" FontSize="Medium" FontAttributes="Bold" TextColor="#333333" LineBreakMode="WordWrap"/>
+ <Label Text="{Binding AuthorString}" FontSize="Small" TextColor="#919191" LineBreakMode="TailTruncation"/>
+ <Label Text="{Binding FormattedPostedDate}" FontSize="Small" TextColor="#919191" LineBreakMode="NoWrap"/>
+ <Label Text="{Binding ItemId}" FontSize="Small" TextColor="#919191" LineBreakMode="NoWrap" IsVisible="false"/>
+ </StackLayout>
+ </Grid>
+ </ViewCell>
+ </DataTemplate>
+ </ListView.ItemTemplate>
+ </ListView>
+ </StackLayout>
+</local:TestContentPage> \ No newline at end of file