양식 응용 프로그램에서 회전식보기를 사용하여 데이터를 표시하려고합니다. 내가 무엇을 놓치고 있는지 모르지만 데이터가 채워지지 않고있다. 나는 거의 모든 샘플을 따라 왔지만 여전히 성공을 찾지 못했다.CarouselView-Xamarin 양식 : 데이터가 표시되지 않습니다.
<forms:CarouselView x:Name="listview" ItemsSource="postIdList" HeightRequest="200" Margin="5">
<forms:CarouselView.ItemTemplate>
<DataTemplate>
<ContentPage >
<StackLayout >
<Label Text="{Binding .}" FontSize="20" TextColor="Black" HorizontalOptions="Center" />
</StackLayout>
</ContentPage>
</DataTemplate>
</forms:CarouselView.ItemTemplate>
</forms:CarouselView>
내가 .cs 파일에 다음과 같은 방식으로 데이터를 채우기 위해 노력하고 있어요 : : 내 XAML 파일에 다음 코드를 사용하고
: 나이 문제 나가 도와주세요
List<string> postIdList = new List<string>
{
"Carousel", "Carousel", "carousel"
};
listview.ItemsSource = postIdList;
내가 카라우스보기에 배경색을 지정하면 그 색상을 볼 수 있지만 텍스트가 표시되지 않습니다. 내 실수를 알려주십시오.
추가되었지만 작동하지 않았습니다. – focus
링크를 업데이트하여 달성 방법에 대한보다 견고한 견해를 가질 수 있습니다! – Ingenator
나는 xamarin studio에서 이것을 시도하고 있는데 visual studio에서는 그렇지 않다. – focus