Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is doesn't work(set ListView.SelectedItem in codebehind) #5

Open
myisoria opened this issue Feb 12, 2019 · 1 comment
Open

Is doesn't work(set ListView.SelectedItem in codebehind) #5

myisoria opened this issue Feb 12, 2019 · 1 comment

Comments

@myisoria
Copy link

Hello John,
the ExtendedViewCell for SelectedBackgroundColor is doesn't work.

For example:

protected override void OnAppearing()
{
     base.OnAppearing();
     ListView.SelectedItem = Source[1];
}

The selected item is orange.
Do you have any idea?

Regards

@wislon
Copy link
Owner

wislon commented Feb 14, 2019

Hi @myisoria I'm sorry, I don't, off the top of my head... but the xamarin folks have moved so much stuff around now, I'm kind of surprised it even got that far with you...

Did you have a look at the blog post at https://blog.wislon.io/posts/2017/04/11/xamforms-listview-selected-colour ? I've detailed some issues that started cropping up with it, and how far I got. Unfortunately, I have not been able to solve it completely... 😞

One hopes that their new BindableCollections and CollectionView things will make this a problem of the past, tho I'm not looking forward to a refit of a bunch of my projects ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants