Guest User

Untitled

a guest
Jan 23rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="JetSolutionsApp.Views.Aba.Parceiros">
  5.  
  6. <StackLayout>
  7. <CarouselView x:Name="slideTopo">
  8. <CarouselView.ItemTemplate>
  9. <DataTemplate>
  10. <Label Text="{Binding .}"
  11. FontSize="50"/>
  12. </DataTemplate>
  13. </CarouselView.ItemTemplate>
  14. </CarouselView>
  15. </StackLayout>
  16. </ContentPage>
  17.  
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Linq;
  21. using System.Text;
  22. using System.Threading.Tasks;
  23.  
  24. using Xamarin.Forms;
  25. using Xamarin.Forms.Xaml;
  26.  
  27. namespace JetSolutionsApp.Views.Aba
  28. {
  29. [XamlCompilation(XamlCompilationOptions.Compile)]
  30. public partial class Parceiros : ContentPage
  31. {
  32. public Parceiros()
  33. {
  34. InitializeComponent();
  35.  
  36. var nomesCarousel = new List<string>
  37. {
  38. "jose"," maria", "joaquim", "joão"
  39. };
  40. slideTopo.ItemsSource = nomesCarousel;
  41.  
  42. }
  43. }
  44. }
Add Comment
Please, Sign In to add comment