Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Set selectedItem of a ListView, not highlighted

$
0
0

I'm setting in Xamarin Forms the selected item of a ListView but it doesn't highlight.
I can't find an other property in the API like 'HideSelected' of 'Selected' than needs to be set. What did I miss ?

protected override void OnBindingContextChanged() {
        selectedProcess = BrewProcess.GetProcessByID (editBrew.ID); 
        processesListView.SelectedItem = selectedProcess;
}

It's correct set: via Watch I see the object in the processesListView.SelectedItem property.
saveButton.Clicked += (sender, e) => {    
        if (    processesListView.SelectedItem  == null) {
                    DisplayAlert (....

DisplayAlert doesn't show, also check with breakpoint and SelectedItem property is still correct set, it's just not highlighted


Viewing all articles
Browse latest Browse all 75885

Trending Articles



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