Your gender identity determines your gender, period.
I always thought it was your period that determines your gender identity...