Hello,
Please remove <Frame> for <label> and <image> for testing, I found a related known issue about CollectionView does not select an element with a Frame as DataTemplate.
<CollectionView Grid.Row="2" x:Name="publishPhotos" ItemsSource="{Binding Images}" SelectionMode="Single" HorizontalOptions="FillAndExpand" Margin="5,0" >
<CollectionView.ItemsLayout>
<GridItemsLayout Orientation="Vertical" Span="5" HorizontalItemSpacing="5" VerticalItemSpacing="5" />
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid BackgroundColor="{DynamicResource BackColor}" Height="80">
<VisualStateManager.VisualStateGroups>
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" >
<VisualState.Setters>
<Setter Property="IsVisible" Value="false" TargetName="gridSelected"/>
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Selected">
<VisualState.Setters>
<Setter Property="IsVisible" Value="True" TargetName="gridSelected"/>
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</VisualStateManager.VisualStateGroups>
<Grid.RowDefinitions>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>
<Grid>
<Image Source="{Binding .}" Aspect="AspectFit"/>
</Grid>
<Grid x:Name="gridSelected" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
</Grid>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
And change your <VisualState x:Name="isSelected">
to <VisualState x:Name="Selected">
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.