xamarin / XamarinCommunityToolkit

The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, and Effects for mobile development with Xamarin.Forms. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.
MIT License
1.58k stars 471 forks source link

[Bug] TabView SelectedIndex #1231

Open Saleh-Software opened 3 years ago

Saleh-Software commented 3 years ago

hello im coding this:

<xct:TabView x:Name="tbView"  Style="{StaticResource CustomTabStyle}" SelectedIndex="1" >

          <xct:TabViewItem /> 
           <xct:TabViewItem /> 
           <xct:TabViewItem /> 

</xct:TabView>

i didnt show tabitem content its just example.

and when i will run getting this error!:

System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'

pictos commented 3 years ago

@Saleh-Software Could you attach a small repro?

Saleh-Software commented 3 years ago

Sure !

this is small check code behind also

idk how zip my project like you its low size but for me its 50mb so i uploaded in file upload

link for download: https://ufile.io/fjnhm6ms

pictos commented 3 years ago

@Saleh-Software I'll take a look during the week. To reduce the size of the sample, delete the obj and bin folders before zip