I have created a custom control derived from ContentControl that is very similar to a HeaderedContentControl, except that it has a Header and a Footer.
I have used the great extension point provided with GetNamedElements and have created my own func that will add my custom control into the named elements.
In my custom control - like the HeaderedContentControl - I have a OnHeaderChanged event handler that calls this method and does this:
protected virtual void OnHeaderChanged(object oldHeader, object newHeader)
With this code in place, CM loses the conventions/binding in the header. If I comment it out, then everything works.
Is there a way to have CM update its named elements when a change like this happens?
I truly appreciate any help!