Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. You can use this type
  2.  
  3.  
  4. <ListView x:Name="lstView"
  5. BackgroundColor="White"
  6. HasUnevenRows="True">
  7. <ListView.ItemTemplate>
  8. <DataTemplate>
  9. <ViewCell>
  10. <Grid Padding="0,10,0,15">
  11.  
  12.  
  13.  
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="10" />
  16. <ColumnDefinition Width="100" />
  17. <ColumnDefinition Width="*" />
  18. <ColumnDefinition Width="Auto" />
  19. <ColumnDefinition Width="10" />
  20. </Grid.ColumnDefinitions>
  21.  
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="Auto" />
  24. <RowDefinition Height="Auto" />
  25. </Grid.RowDefinitions>
  26.  
  27.  
  28. <Image Grid.Column="1" Source="{Binding Image}" />
  29. <StackLayout Grid.Column="2" Orientation="Vertical">
  30. <Label Text="{Binding Title}" TextColor="#f36e22" />
  31. <Label Text="{Binding Text}" TextColor="Black" />
  32. </StackLayout>
  33.  
  34. <Image Grid.Column="3" Source="{Binding smallImage}" />
  35.  
  36. </Grid>
  37. </ViewCell>
  38. </DataTemplate>
  39. </ListView.ItemTemplate>
  40. </ListView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement