Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions 9.0/Apps/DeveloperBalance/Pages/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,24 @@
<Label Text="Task Categories" Style="{StaticResource Title2}"/>
<controls:CategoryChart />
<Label Text="Projects" Style="{StaticResource Title2}"/>
<ScrollView Orientation="Horizontal" Margin="-30,0">
<HorizontalStackLayout
Spacing="15" Padding="30,0"
BindableLayout.ItemsSource="{Binding Projects}">
<BindableLayout.ItemTemplate>
<DataTemplate x:DataType="models:Project">
<controls:ProjectCardView WidthRequest="200">
<controls:ProjectCardView.GestureRecognizers>
<TapGestureRecognizer Command="{Binding NavigateToProjectCommand, Source={RelativeSource AncestorType={x:Type pageModels:MainPageModel}}, x:DataType=pageModels:MainPageModel}" CommandParameter="{Binding .}"/>
</controls:ProjectCardView.GestureRecognizers>
</controls:ProjectCardView>
</DataTemplate>
</BindableLayout.ItemTemplate>
</HorizontalStackLayout>
</ScrollView>
<CollectionView
ItemsSource="{Binding Projects}"
Margin="-15, 0">
<CollectionView.ItemsLayout>
<LinearItemsLayout
Orientation="Horizontal"
ItemSpacing="15" />
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="models:Project">
<controls:ProjectCardView WidthRequest="200">
<controls:ProjectCardView.GestureRecognizers>
<TapGestureRecognizer Command="{Binding NavigateToProjectCommand, Source={RelativeSource AncestorType={x:Type pageModels:MainPageModel}}, x:DataType=pageModels:MainPageModel}" CommandParameter="{Binding .}"/>
</controls:ProjectCardView.GestureRecognizers>
</controls:ProjectCardView>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<Grid HeightRequest="44">
<Label Text="Tasks" Style="{StaticResource Title2}" VerticalOptions="Center"/>
<ImageButton
Expand Down
Loading