❔ User Control with custom dependency properties
I'm developing a user control that is supposed to have two properties bound by a parent control that will be using it.
Initially, I developed the UC like I'm used to - View + ViewModel.
However, I've quickly discovered that I need custom dependency properties that must be written into the View. So, in short, I need help to correctly propagate the bound values back to the ViewModel.
In my Parent ViewModel, I have a
In my parent view, I'm using my custom user control:
UC View-behind:
UC VM property:
UC View:
From my debugging, it seems that the Parent
Any tips?
Initially, I developed the UC like I'm used to - View + ViewModel.
However, I've quickly discovered that I need custom dependency properties that must be written into the View. So, in short, I need help to correctly propagate the bound values back to the ViewModel.
In my Parent ViewModel, I have a
In my parent view, I'm using my custom user control:
UC View-behind:
UC VM property:
UC View:
From my debugging, it seems that the Parent
Templates property getter is never called, and naturally, the setter of the dependency property is also never called.Any tips?