My problem is simple: In my RadExpander header template, I am unable to access the properties of the data context of the expander itself. Why does the header not have the same data context?
Here is a simple example: A main Window with a label and a RadExpander (with HeaderTemplate). The simple label easily accesses the "Name" property. The RadExpander's HeaderTemplate cannot
The DataContext of this window is just itself:
My real-world use case it actually quite a bit more complicated so it's not a viable solution for me to try to bind the "RadExpander.Header" property directly.
Nor can I use the "ElementName=" binding syntax. Not in my case
What is the best way to make the RadExpander HeaderTemplate inherit its the RadExpander's data context?