I've never seen or heard of an underwire bra setting off a metal detector, and I fly a lot. Other things that haven't set off a metal detector are a pair of glasses and a wedding ring.
I don't know what the 'critical mass" is, in the way of metal, that will set off the metal detector, but obviously, small amounts of metal doesn't do it.
Jenny