Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Problem with Switch and Toggle-Event

$
0
0

Hi guys,

i created a Xamarin Forms App with the following functions:

Add a local device with an Ip-Address and put it on or off with a Switch.
Everything is fine ... i have a ListView for my devices. I save and load them with SQLite ... and put them in a ObservableCollection.
My model for the devices has already the INotifyPropertyChanged so i can recognise if something changes and the ListView updates automatically.

So ... my problem now is when i load the ListView all of my devices get triggered by the Switch-Event so if i have a device online and load the list .. the device is going to be offline because of the event is triggered ... i tried to set a boolean value to catch this but i don't get it working.

Do you have a "clean" way for me to solve this problem?

  • Martin

Viewing all articles
Browse latest Browse all 204402


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>