It’s vanity, and that’s fine. But affectation supposes something fake:
‘Affectation noun behaviour or speech that is not sincere’
To me that’s a (negative) value judgement. And I’m defending the point that there’s nothing inherently negative about vanity, unlike what’s being implied by our dearest Dr.