I\'ve created a control with 3 PART_s, one PART_ changes depending on the type bound to it, however values changed within the Control do not update the Binding, it seems to
I've actually never worked with a ContentTemplateSelector
, but if I had to hazard a guess I would say either it's not responding to PropertyChanged
events on your ContentControl.Content
property, or your Content
binding is incorrect.
You can easily check if your binding is correct or not by removing the ContentTemplateSelector
and seeing if data shows up at all. If it does, your binding is correct. If it doesn't, it's incorrect and you need to fix it.
If the problem is the ContentTemplateSelector
, then I would suggest switching to a DataTrigger
which determines which ContentTemplate
to use based on the Content. This is what I usually do, and it uses a Converter which simply returns typeof(value)