Exactly, I don't know anyway why it didn't work with the generic theme and it did with the others. I suppose that the generic theme is applied before that OnDocumentHeaderTemplateChanged is called. Forcing it the a local value broke the binding installed by the generic style.
Ado