This works for ListBox, but when using the same binding for a
GridViewColumn, it stops working, and the output error is:
“Cannot find previous element for use as RelativeSource because there
is no parent in generated context.”

Can somebody decipher the message or possibly give a clue how to make
it work?