79759469

Date: 2025-09-09 03:17:09
Score: 0.5
Natty:
Report link

Turns out there're just couple of things to add in order to have my original code to work:

  1. Add BindingContext assignment to the behavior;

  2. Set x:DataType to the BindingContext;

  3. Use x:Reference to refer to the parent Image control and set its BindingContext to the behavior.

Hope this could be added to the documentation as this is quite a common scenario.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nico