Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="JetSolutionsApp.Views.Aba.Parceiros">
- <StackLayout>
- <CarouselView x:Name="slideTopo">
- <CarouselView.ItemTemplate>
- <DataTemplate>
- <Label Text="{Binding .}"
- FontSize="50"/>
- </DataTemplate>
- </CarouselView.ItemTemplate>
- </CarouselView>
- </StackLayout>
- </ContentPage>
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace JetSolutionsApp.Views.Aba
- {
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class Parceiros : ContentPage
- {
- public Parceiros()
- {
- InitializeComponent();
- var nomesCarousel = new List<string>
- {
- "jose"," maria", "joaquim", "joão"
- };
- slideTopo.ItemsSource = nomesCarousel;
- }
- }
- }
Add Comment
Please, Sign In to add comment