|
38 | 38 | <Label Text="Task Categories" Style="{StaticResource Title2}"/> |
39 | 39 | <controls:CategoryChart /> |
40 | 40 | <Label Text="Projects" Style="{StaticResource Title2}"/> |
41 | | - <ScrollView Orientation="Horizontal" Margin="-30,0"> |
42 | | - <HorizontalStackLayout |
43 | | - Spacing="15" Padding="30,0" |
44 | | - BindableLayout.ItemsSource="{Binding Projects}"> |
45 | | - <BindableLayout.ItemTemplate> |
46 | | - <DataTemplate x:DataType="models:Project"> |
47 | | - <controls:ProjectCardView WidthRequest="200"> |
48 | | - <controls:ProjectCardView.GestureRecognizers> |
49 | | - <TapGestureRecognizer Command="{Binding NavigateToProjectCommand, Source={RelativeSource AncestorType={x:Type pageModels:MainPageModel}}, x:DataType=pageModels:MainPageModel}" CommandParameter="{Binding .}"/> |
50 | | - </controls:ProjectCardView.GestureRecognizers> |
51 | | - </controls:ProjectCardView> |
52 | | - </DataTemplate> |
53 | | - </BindableLayout.ItemTemplate> |
54 | | - </HorizontalStackLayout> |
55 | | - </ScrollView> |
| 41 | + <CollectionView |
| 42 | + ItemsSource="{Binding Projects}" |
| 43 | + Margin="-15, 0"> |
| 44 | + <CollectionView.ItemsLayout> |
| 45 | + <LinearItemsLayout |
| 46 | + Orientation="Horizontal" |
| 47 | + ItemSpacing="15" /> |
| 48 | + </CollectionView.ItemsLayout> |
| 49 | + <CollectionView.ItemTemplate> |
| 50 | + <DataTemplate x:DataType="models:Project"> |
| 51 | + <controls:ProjectCardView WidthRequest="200"> |
| 52 | + <controls:ProjectCardView.GestureRecognizers> |
| 53 | + <TapGestureRecognizer Command="{Binding NavigateToProjectCommand, Source={RelativeSource AncestorType={x:Type pageModels:MainPageModel}}, x:DataType=pageModels:MainPageModel}" CommandParameter="{Binding .}"/> |
| 54 | + </controls:ProjectCardView.GestureRecognizers> |
| 55 | + </controls:ProjectCardView> |
| 56 | + </DataTemplate> |
| 57 | + </CollectionView.ItemTemplate> |
| 58 | + </CollectionView> |
56 | 59 | <Grid HeightRequest="44"> |
57 | 60 | <Label Text="Tasks" Style="{StaticResource Title2}" VerticalOptions="Center"/> |
58 | 61 | <ImageButton |
|
0 commit comments