Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemTemplate> <DataTemplate> <ContentView> <ContentView.Triggers> <DataTrigger TargetType="ContentView" Binding="{Binding .}" Value="Second"> <Setter Property="Background" Value="Purple"/> </DataTrigger> </ContentView.Triggers> <Label Text="{Binding .}" FontSize="24" Background="Azure" /> </ContentView> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView>
The color of the items should be Azure and the selected Purple, but they are all Azure.
If I remove the Background on the element, then all are white with one being Purple as I expected.
Archive.zip
The text was updated successfully, but these errors were encountered:
The label background will cover the content view background... Oops.
The color of the items should be Azure and the selected Purple, but they are all Azure.
If I remove the Background on the element, then all are white with one being Purple as I expected.
Archive.zip
The text was updated successfully, but these errors were encountered: