LONDON -- The Duchess of Cambridge said Sunday that she doesn't know the sex of her first child – but she hopes it's a boy.

Her husband Prince William, however, would prefer a girl.

The former Kate Middleton, who is five months pregnant, made the revelation to a soldier at a St. Patrick's Day ceremony honoring the Irish Guards.

"I asked her `do you know if it's a girl or boy?' and she said `not yet,'" said Guardsman Lee Wheeler.

"She said `I'd like to have a boy and William would like a girl.'"

Wheeler said the duchess told him the couple had not settled on names for the baby, who will be third in line to the British throne.

The duchess wore a green dress coat and a shamrock lapel pin as she presented sprigs of shamrock to soldiers in the annual ceremony at a barracks in Aldershot, southern England. She also pinned a spring on the collar of the regiment's mascot, an Irish wolfhound named Domhnall.

Kate suffered a minor mishap when one of her high heels became briefly stuck in a drainage grille. The duchess leaned on her husband as she wrenched it loose.

The royal St. Patrick's Day tradition was started by Queen Alexandra, the wife of King Edward VII, in 1901.

Loading Slideshow...
  • February 2011

    (Getty photo)

  • June 2011

    (Getty photo)

  • June 2011

    (Getty photo)

  • July 2011

    (AFP photo)

  • July 2011

    (WireImage photo)

  • July 2011

    (WireImage photo)

  • July 2011

  • July 2011

    (Getty photo)

  • September 2011

    (AFP photo)

  • September 2011

    (AFP photo)

  • November 2011

    (WireImage photo)

  • February 2012

    (Getty photo)

  • February 2012

    (Getty photo)

  • February 2012

    (Getty photo)

  • February 2012

    (AFP photo)

  • February 2012

    (Getty photo)

  • February 2012

    (Getty photo)

  • March 2012

    (WireImage photo)

  • March 2012

    (Getty photo)

  • March 2012

    (Getty photo)

  • March 2012

    (Getty photo)

  • March 2012

    (Getty photo)

  • March 2012

    (AFP photo)

  • April 2012

    (Getty photo)

  • April 2012

    (Getty photo)

  • June 2012

    (Getty photo)

  • Kate Middleton’s Childhood Secret

    A spokesperson for the Royal Family confirmed that Kate Middleton has a scar from a serious childhood surgery.

  • September 2012

    (WireImage)

  • September 2012

    (WireImage)

  • September 2012

    (Getty photo)

  • September 2012

    (WireImage)

  • November 2012

    (Getty)