summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3319.xaml
blob: 7df955968c0ffcb8956d3f38da90cf9f5d654391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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>