A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to Microsoft Q&A!
I managed to reproduce your first problem.
1. The workaround is to call GetValues method inside OnAppearing instead of constructor of Viewmodel .
protected override void OnAppearing()
{
base.OnAppearing();
var model = this.BindingContext as AddressTableVM;
model.GetValues();
}
And initialize the List MyAdresses inside constructor of Viewmodel intead of GetValues method .
public AddressTableVM() {
//GetValues();
MyAdresses = new ObservableCollection<Address>();
2. When I was selecting item , no error happens , if you want to unselect the item , just set SelectedItem as null in ViewModel .
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.