I’m trying to understand RelativeSource binding but I can’t find a definition for TemplatedParent.
MSDN says:
“Gets a static value that is used to return a RelativeSource constructed for the TemplatedParent mode.”
It doesn’t appear in the index of “Windows Presentation Foundation Unleashed”.
Simply, what is a TemplatedParent please?
TemplatedParentrefers to theControlinstance that the template is being applied to. You can useTemplatedParentto bind to properties declared on that object (and its base classes).