Answer the question
In order to leave comments, you need to log in
How to update ListView from string array in Xamarin.Forms?
Good day everyone!
Can you please tell me how can I update a ListView that is filled with values from string[] on a page in Xamarin.Forms? In theory.
There are two lists on the page:
<ListView x:Name="listNomeHTTP" ItemsSource="{Binding Nome}" ItemSelected="nomList_Selected"/>
<ListView x:Name="listNom" ItemsSource="{Binding Nom}" ItemSelected="nomList_Selected"/>
public string[] Nom { get;private set; }
Nom = new string[] { "Шляпа", "Кепка" };
Answer the question
In order to leave comments, you need to log in
Happened! I spied the idea on the msdn forum!
I didn't think of it right away...
string[] nom = (JsonConvert.DeserializeObject<string[]>(content));
foreach (string n in nom)
Nome.Add(n);
Option 1: Use an ObservableCollection.
Option 2: implement INotifyPropertyChanged.
"tried - does not work" - so they tried not so.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question