If I inherit from ContentView to create a reusable control, I can make a control that binds its UI elements to it’s own view model, or I can make a control that exposes a BindableProperty to its parent. I haven’t figured out how to do both.
To use a view model, I set the control’s BindingContext to its view model in its constructor. But this prevents any BindableProperty I create from working.
Is this possible? Is there a good way to do this? Is there a reason to avoid this pattern even if we could make it work?
2