MobileList.xaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContentView
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. xmlns:timesheets="clr-namespace:comal.timesheets"
  7. x:Class="comal.timesheets.MobileList"
  8. BackgroundColor="Transparent">
  9. <ContentView.BindingContext>
  10. <timesheets:MobileListViewModel x:Name="_viewmodel"/>
  11. </ContentView.BindingContext>
  12. <ContentView.Content>
  13. <RefreshView Command="{Binding RefreshCommand}" IsRefreshing="{Binding IsRefreshing}" BackgroundColor="Transparent">
  14. <CollectionView
  15. BackgroundColor="Transparent"
  16. x:Name="_list"
  17. ItemsSource="{Binding ItemsSource}"
  18. SelectionMode="Single"
  19. ItemTemplate="{Binding ItemTemplate}"
  20. SelectionChanged="_list_OnSelectionChanged"
  21. Margin="5,2.5,5,2.5">
  22. <CollectionView.ItemsLayout>
  23. <LinearItemsLayout Orientation="Vertical" ItemSpacing="5" />
  24. </CollectionView.ItemsLayout>
  25. <!-- <CollectionView.GestureRecognizers> -->
  26. <!-- <TapGestureRecognizer Tapped="Cell_OnTapped"/> -->
  27. <!-- </CollectionView.GestureRecognizers> -->
  28. </CollectionView>
  29. </RefreshView>
  30. </ContentView.Content>
  31. </ContentView>