Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <flv:FlowListView Grid.Row="3" x:Name="abc"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- FlowColumnCount="3"
- SeparatorVisibility="None"
- HasUnevenRows="true"
- FlowItemsSource="{Binding ProductPackageBatch}"
- FlowLastTappedItem="{Binding LastTappedItem}"
- FlowItemTappedCommand="{Binding ItemTappedCommand}">
- <flv:FlowListView.FlowColumnTemplate>
- <DataTemplate>
- <StackLayout Margin="5, 10, 10, 5">
- <StackLayout.Children>
- <Frame Padding="2"
- OutlineColor="{DynamicResource ProductGridImageBorderColor}"
- HasShadow="False"
- BackgroundColor="{DynamicResource ProductGridBackgroundColor}">
- <Image Aspect="AspectFit"
- WidthRequest="100"
- Source="{Binding ImageBase64, Converter={StaticResource Base64ToImageConverter}}">
- <Image.HeightRequest>
- <OnPlatform x:TypeArguments="x:Double"
- iOS="100"
- Android="150" />
- </Image.HeightRequest>
- </Image>
- </Frame>
- <Label Style="{StaticResource ProductGridName}"
- Text="{Binding Name}" />
- <Label Style="{StaticResource ProductGridFormattedPrice}"
- Text="{Binding FormattedPrice}"
- FontAttributes="Bold" />
- <Button BackgroundColor="{DynamicResource BuyButtonColor}"
- TextColor="{DynamicResource TextColor}"
- BorderRadius="0"
- Margin="5, 0, 5, 0"
- VerticalOptions="End"
- Text="Buy"
- Command="{Binding Source={x:Reference abc}, Path=BindingContext.AddToUserCartCommand}"
- CommandParameter="{Binding .}" />
- </StackLayout.Children>
- </StackLayout>
- </DataTemplate>
- </flv:FlowListView.FlowColumnTemplate>
- </flv:FlowListView>
- <Button Grid.Row="4"
- Margin="30"
- BackgroundColor="{DynamicResource BuyButtonColor}"
- TextColor="{DynamicResource TextColor}"
- BorderRadius="0"
- Text="Add to Cart"
- Command="{Binding AddToUserCartCommand}"
- CommandParameter="{Binding ProductPackage.Id}" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement