Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <flv:FlowListView Grid.Row="3" x:Name="abc"
  2. Grid.Column="0"
  3. Grid.ColumnSpan="2"
  4. FlowColumnCount="3"
  5. SeparatorVisibility="None"
  6. HasUnevenRows="true"
  7. FlowItemsSource="{Binding ProductPackageBatch}"
  8. FlowLastTappedItem="{Binding LastTappedItem}"
  9. FlowItemTappedCommand="{Binding ItemTappedCommand}">
  10. <flv:FlowListView.FlowColumnTemplate>
  11. <DataTemplate>
  12. <StackLayout Margin="5, 10, 10, 5">
  13. <StackLayout.Children>
  14. <Frame Padding="2"
  15. OutlineColor="{DynamicResource ProductGridImageBorderColor}"
  16. HasShadow="False"
  17. BackgroundColor="{DynamicResource ProductGridBackgroundColor}">
  18. <Image Aspect="AspectFit"
  19. WidthRequest="100"
  20. Source="{Binding ImageBase64, Converter={StaticResource Base64ToImageConverter}}">
  21. <Image.HeightRequest>
  22. <OnPlatform x:TypeArguments="x:Double"
  23. iOS="100"
  24. Android="150" />
  25. </Image.HeightRequest>
  26. </Image>
  27. </Frame>
  28.  
  29. <Label Style="{StaticResource ProductGridName}"
  30. Text="{Binding Name}" />
  31.  
  32. <Label Style="{StaticResource ProductGridFormattedPrice}"
  33. Text="{Binding FormattedPrice}"
  34. FontAttributes="Bold" />
  35.  
  36. <Button BackgroundColor="{DynamicResource BuyButtonColor}"
  37. TextColor="{DynamicResource TextColor}"
  38. BorderRadius="0"
  39. Margin="5, 0, 5, 0"
  40. VerticalOptions="End"
  41. Text="Buy"
  42. Command="{Binding Source={x:Reference abc}, Path=BindingContext.AddToUserCartCommand}"
  43. CommandParameter="{Binding .}" />
  44. </StackLayout.Children>
  45. </StackLayout>
  46. </DataTemplate>
  47. </flv:FlowListView.FlowColumnTemplate>
  48. </flv:FlowListView>
  49.  
  50. <Button Grid.Row="4"
  51. Margin="30"
  52. BackgroundColor="{DynamicResource BuyButtonColor}"
  53. TextColor="{DynamicResource TextColor}"
  54. BorderRadius="0"
  55. Text="Add to Cart"
  56. Command="{Binding AddToUserCartCommand}"
  57. CommandParameter="{Binding ProductPackage.Id}" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement