I have a ListView like this:
<ListView
x:Name="WoTasksList"
IsPullToRefreshEnabled="True"
ItemsSource="{Binding Tasks}"
RefreshCommand="{Binding LoadTasksRemotecommand}"
IsRefreshing="{Binding IsBusy, Mode=OneWay}"
SeparatorVisibility="None"
ItemTapped="OnTapped"
HasUnevenRows="true"
SeparatorColor="Transparent">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell StyleId="disclosure">
<ContentView >
<Switch Grid.Row="2"
Grid.Column="1"
HorizontalOptions="Start"
VerticalOptions="Center"
IsToggled="{Binding IsCompleted}"
x:Name="TaskIsCompleteSwitch"
Toggled="TaskIsCompleteSwitch_OnToggled"/>
</ContentView>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
On IOS all is working good , but on Android Toggled event is called every time when List is loaded, sometime it's called once sometimes it's called once for each item in the list that makes this event totally unusable as I can't detect when Toggled event is called by user(when switch is changing value) or Toggled event is called by List Loading.
Does anybody know what is the issue here and how I can make it working right?
Thanks a lot!