79643990

Date: 2025-05-29 13:41:54
Score: 3.5
Natty:
Report link

You cannot set BindingContext to two different objects simultaneously for the same element. When you write:

BindingContext = appState;
BindingContext = viewModel;

Depending on what you would like to do with AppState would change the way to use it
(simple use case or a more complex one?)

I can't comment as not enough reputation but depending on your use case, you may get a more detailed answer.

Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): enough reputation
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lewie