|
96 | 96 | <!-- Content templates --> |
97 | 97 | <ControlTemplate x:Key="GalleryPageTemplate"> |
98 | 98 | <StackLayout Spacing="0"> |
99 | | - <CollectionView ItemsSource="{TemplateBinding BindingContext.FilteredItems}"> |
100 | | - <CollectionView.Header> |
| 99 | + <ListView ItemsSource="{TemplateBinding BindingContext.FilteredItems}" SelectionMode="None"> |
| 100 | + <ListView.Header> |
101 | 101 | <ContentView Padding="20,12"> |
102 | 102 | <Entry |
103 | 103 | HeightRequest="40" |
|
108 | 108 | Text="{TemplateBinding BindingContext.FilterValue, |
109 | 109 | Mode=OneWayToSource}" /> |
110 | 110 | </ContentView> |
111 | | - </CollectionView.Header> |
112 | | - <CollectionView.Footer> |
| 111 | + </ListView.Header> |
| 112 | + <ListView.Footer> |
113 | 113 | <BoxView HeightRequest="32" /> |
114 | | - </CollectionView.Footer> |
115 | | - <CollectionView.ItemTemplate> |
| 114 | + </ListView.Footer> |
| 115 | + <ListView.ItemTemplate> |
116 | 116 | <DataTemplate> |
117 | | - <Grid Padding="20,12"> |
118 | | - <custom:PancakeView Style="{StaticResource card}"> |
119 | | - <custom:PancakeView.GestureRecognizers> |
120 | | - <TapGestureRecognizer Command="{Binding NavigateCommand, Source={x:RelativeSource AncestorType={x:Type ContentPage}}}" CommandParameter="{Binding .}" /> |
121 | | - </custom:PancakeView.GestureRecognizers> |
122 | | - <Grid ColumnSpacing="20"> |
123 | | - <Grid.ColumnDefinitions> |
124 | | - <ColumnDefinition Width="12" /> |
125 | | - <ColumnDefinition Width="*" /> |
126 | | - </Grid.ColumnDefinitions> |
127 | | - <BoxView BackgroundColor="{Binding DetailColor, Source={x:RelativeSource AncestorType={x:Type ContentPage}}}" /> |
128 | | - <StackLayout |
| 117 | + <ViewCell> |
| 118 | + <Grid Padding="20,12"> |
| 119 | + <custom:PancakeView Style="{StaticResource card}"> |
| 120 | + <custom:PancakeView.GestureRecognizers> |
| 121 | + <TapGestureRecognizer Command="{Binding NavigateCommand, Source={x:RelativeSource AncestorType={x:Type ContentPage}}}" CommandParameter="{Binding .}" /> |
| 122 | + </custom:PancakeView.GestureRecognizers> |
| 123 | + <Grid ColumnSpacing="20"> |
| 124 | + <Grid.ColumnDefinitions> |
| 125 | + <ColumnDefinition Width="12" /> |
| 126 | + <ColumnDefinition Width="*" /> |
| 127 | + </Grid.ColumnDefinitions> |
| 128 | + <BoxView BackgroundColor="{Binding DetailColor, Source={x:RelativeSource AncestorType={x:Type ContentPage}}}" /> |
| 129 | + <StackLayout |
129 | 130 | Grid.Column="1" |
130 | 131 | Padding="0,24,24,24" |
131 | 132 | Spacing="8"> |
132 | | - <Label Style="{StaticResource label_section_header}" Text="{Binding Title}" /> |
133 | | - <Label Text="{Binding Description}" /> |
134 | | - </StackLayout> |
135 | | - </Grid> |
136 | | - </custom:PancakeView> |
137 | | - </Grid> |
| 133 | + <Label Style="{StaticResource label_section_header}" Text="{Binding Title}" /> |
| 134 | + <Label Text="{Binding Description}" /> |
| 135 | + </StackLayout> |
| 136 | + </Grid> |
| 137 | + </custom:PancakeView> |
| 138 | + </Grid> |
| 139 | + </ViewCell> |
138 | 140 | </DataTemplate> |
139 | | - </CollectionView.ItemTemplate> |
140 | | - </CollectionView> |
| 141 | + </ListView.ItemTemplate> |
| 142 | + </ListView> |
141 | 143 | </StackLayout> |
142 | 144 | </ControlTemplate> |
143 | 145 |
|
|
0 commit comments