❔ 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
Templates
property getter is never called, and naturally, the setter of the dependency property is also never called.
Any tips?6 Replies
what framework is this?
.net 7
what GUI framework
and what MVVM framework
I'm using community toolkit MVVM, the GUI is WPF - I've included it in the tags of this post
anything in the binding logs?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.