in src/Covi/Features/OnBoarding/Components/HorizontalSelectedItemIndicatorControl.xaml.cs [75:88]
private void UpdateSelectedItem(int oldIndex, int newIndex)
{
if (ItemCount == 0 || newIndex >= ItemCount || newIndex < 0)
{
return;
}
if (oldIndex >= 0 && oldIndex <= ContainerStackLayout.Children.Count - 1)
{
((Frame) ContainerStackLayout.Children[oldIndex]).BackgroundColor = Color.Transparent;
}
((Frame) ContainerStackLayout.Children[newIndex]).BackgroundColor = IndicatorColor;
}