The Duchess of Cambridge told a soldier that she would like her baby to be a boy when she attended a St Patrick's Day parade at a military barracks today.

But Kate, who is five months pregnant, said that the Duke, who attended the event with her, would prefer to have a girl.

Ahead of watching the parade at Mons Barracks in Aldershot, Hampshire, the Duchess suffered an embarrassing mishap when the heel of one of her shoes became stuck in a drain.

kate middleton

The Duchess struggles as she gets her heal stuck in a drain

Kate, who showed patriotic spirit in the same green Emilia Wickstead dress coat she wore to the event last year, had to lean on William while she pulled it out with her hand.

Afterwards, the royal couple chatted to soldiers from the 1st Battalion Irish Guards in the Guardsmens' cookhouse.

Guardsman Lee Wheeler, 29, said: "I was talking to her about the baby, of course.

"I asked her 'do you know if it's a girl or boy', and she said 'not yet'.

"She said 'I'd like to have a boy and William would like a girl'. That's always the way.

"I asked her if she had any names yet and she said no.

"I said I suppose you've got to stick to traditional names."

Guardsman Jason Perry, 33, also spoke to Kate about her pregnancy.

He said: "I wished her congratulations and said I hoped everything is fine. She said 'yes it is.'

"I asked her if she was excited to be having her first child. She said 'very'."

The soldier said it was "absolutely brilliant" to meet the couple and they had both asked him about his 13-and-a-half year career in the Army, which has seen him serve two tours of Iraq and one in Northern Ireland.

William, who wore the ceremonial dress of the Irish Guards, sipped on a glass of sherry inside the dining hall while the pregnant Duchess went without a drink.

The pair were loudly cheered by the soldiers as they entered the hall, which gave them welcome shelter from the heavy rain outside.

Before going inside, the Duke and Duchess had put on a brave face as they posed for formal photographs with officers and sergeants in the torrential rain.

The wet weather had earlier held off as the royal couple watched the parade take place under the cover of a podium.

Under grey skies, the Duchess took her position next to the Duke, who was attending the event as Colonel of the Regiment and for the first time wore an insignia aide de camp to the Queen on his shoulder, which was bestowed on him today.

The couple looked as about 200 soldiers paraded through the puddle-strewn square, bringing a splash of colour to the occasion in their full ceremonial uniform of scarlet tunics and bearskins, and led by the Band of the Irish Guards.

Kate, who had her hair up and wore an elegant black hat with a felt flower, finished off her outfit with black tights and heels.

The Duke watched as she presented traditional sprigs of shamrock to the officers and guardsmen, including one to himself.

Many of the soldiers who received the sprigs wore them in the front of their caps, as did the Duke, while Kate attached one to her lapel, next to a shamrock brooch.

The last sprig was given to the regiment's new mascot, seven-month-old Irish wolfhound Domhnall, who was carrying out his first public engagement.

Wearing a smart scarlet cape that matched the tunics of the soldiers, he was led over to Kate by his handler, Drummer David Steed.

The Duchess smiled as she bent down to attach the foliage to his silver collar.

The presentation of sprigs of shamrock by a senior female member of the royal family is a century-old tradition which was started by Queen Alexandra, the wife of Edward VII, in 1901.

The role was famously carried out by the Queen Mother.

The rain briefly stopped as William and Kate chatted to soldiers in the square after the parade.

The Duchess was given a posy of flowers by five-year-old Maisie Purcell, daughter of Company Sergeant Major Andy Purcell.

As she bent down to talk to Maisie and her friend Chloe Rigby, three, the Duchess told them: "Very nice to meet you."

After being handed the bunch of white and yellow flowers, she added: "Very spring-like."

Afterwards, a bashful Maisie said: "She said they look pretty."

Her mother, Suzy Purcell, 32, said: "She just came over and asked if they'd seen the dog and if we were cold."

Loading Slideshow...
  • Britain's Kate Duchess of Cambridge speaks to a member of the 1st Battalion Irish Guards during the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Royal visit to Aldershot

    The Duchess of Cambridge during a visit to the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Toby Melville/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge during a visit to the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge during a visit to the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge during a visit to the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Britain's Kate the Duchess of Cambridge receives flowers from a little girl at the 1st Battalion Irish Guards' St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate Duchess of Cambridge, center, presents a traditional sprig of shamrock to a member of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate Duchess of Cambridge, center, receives a salute after presenting a traditional sprig of shamrock to Domhnall the Irish Wolf Hound, the regimental mascot of the 1st Battalion Irish Guards, flanked by her husband Prince William, second left, during the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Royal visit to Aldershot

    The 1st Battalion Irish Guards' St. Patricks Day Parade at Mons Barracks, Aldershot, which was attended by the Duke and Duchess of Cambridge. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Britain's Kate the Duchess of Cambridge stands beside the bearskin hat worn by a member of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Duchess of Cambridge

    Britain's Kate Duchess of Cambridge, center, meets members of the 1st Battalion Irish Guards, during the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate the Duchess of Cambridge, second left, is presented a traditional sprig of shamrock watched by her husband Prince William, fourth left, at the 1st Battalion Irish Guards St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Duchess of Cambridge

    Britain's Kate the Duchess of Cambridge holds flowers after presenting traditional sprigs of shamrocks to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate Duchess of Cambridge, center, presents a traditional sprig of shamrock to Domhnall the Irish Wolf Hound, the regimental mascot of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrock to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Royal visit to Aldershot

    The Duchess of Cambridge presents shamrocks during a visit to the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Britain's Kate Duchess of Cambridge, center, walks with her husband Prince William, left, after presenting traditional sprigs of shamrock to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrock to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Royal visit to Aldershot

    The Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Britain's Kate Duchess of Cambridge, third left, stands with her husband Prince William, fourth left, before presenting traditional sprigs of shamrock to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The 1st Battalion Irish Guards' St. Patricks Day Parade at Mons Barracks, Aldershot, which was attended by the Duke and Duchess of Cambridge. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge presents shamrocks during a visit to the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge presents shamrocks during a visit to the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The 1st Battalion Irish Guards' St. Patricks Day Parade at Mons Barracks, Aldershot, which was attended by the Duke and Duchess of Cambridge. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Britain's Kate Duchess of Cambridge holds onto her husband Prince William, left, as she bends down to pull the heel of her shoe out of a drainage grill it got stuck in, as she presents the traditional sprigs of shamrocks to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrocks to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate Duchess of Cambridge holds onto the hand of her husband Prince William, left, as she bends down to pull the heel of her shoe out of a drainage grill after it got stuck, as she presents the traditional sprigs of shamrock to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrock to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate Duchess of Cambridge holds onto the hand of her husband Prince William, left, as she bends down to pull the heel of her shoe out of a drainage grill after it got stuck, as she presents the traditional sprigs of shamrock to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrock to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Britain's Kate Duchess of Cambridge holds onto the hand of her husband Prince William, left, as she bends down to pull the heel of her shoe out of a drainage grill after it got stuck, as she presents the traditional sprigs of shamrock to members of the 1st Battalion Irish Guards at the St Patrick’s Day Parade at Mons Barracks in Aldershot, England, Sunday, March 17, 2013. Kate presenting the sprigs of shamrock to the regiment Sunday, follows a century-old tradition inaugurated by Queen Alexandra, the wife of the then King, Edward VII back in 1901. (AP Photo/Matt Dunham)

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge pins a shamrock to the mascot during a visit to the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • Royal visit to Aldershot

    The Duchess of Cambridge gets her heel stuck in a drain as the Duke and Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patricks Day Parade at Mons Barracks, Aldershot. PRESS ASSOCIATION Photo. Picture date: Sunday March 17, 2013. See PA story ROYAL Cambridge. Photo credit should read: Steve Parsons/PA Wire

  • Royal visit to Aldershot

    The Duchess of Cambridge visit the 1st Battalion Irish Guards to attend the St. Patrick's Day Parade at Mons Barracks, Aldershot.

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge attends a St Patrick's Day parade by the 1st Battalion Irish Guards as they visit Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge is helped by Prince William, Duke of Cambridge as she gets her heel stuck in the grating while they take part in a St Patrick's Day parade as they visit Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • BRITAIN-ROYALS-SAINT PATRICK'S DAY

    Britain's Prince William, Duke of Cambridge (L), and Catherine, Duchess of Cambridge, attend St Patrick's Day parade with the 1st Battalion Irish Guards in Mons Barracks in Aldershot on March 17, 2013. The Duke of Cambridge attended the parade as Colonel of the Regiment and Catherine presented the traditional sprigs of shamrocks to the Officers and Guardsmen of the Regiment. AFP PHOTO/ADRIAN DENNIS (Photo credit should read ADRIAN DENNIS/AFP/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge attends a St Patrick's Day parade by the 1st Battalion Irish Guards as they visit Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge is helped by Prince William, Duke of Cambridge as she gets her heel stuck in the grating while they take part in a St Patrick's Day parade as they visit Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • BRITAIN-ROYALS-SAINT PATRICK'S DAY

    Britain's Catherine, Duchess of Cambridge, holds on to Britain's Prince William, Duke of Cambridge, as she tries to release her shoe that was stuck in the grate during St Patrick's Day parade in Mons Barracks in Aldershot on March 17, 2013. The Duke of Cambridge attended the parade as Colonel of the Regiment and Catherine presented the traditional sprigs of shamrocks to the Officers and Guardsmen of the Regiment. AFP PHOTO/ADRIAN DENNIS (Photo credit should read ADRIAN DENNIS/AFP/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge and Prince William, Duke of Cambridge (Behind) attend a St Patrick's Day parade by the 1st Battalion Irish Guards as they visit Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge attends a St Patrick's Day parade by the 1st Battalion Irish Guards as she visits Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge attends a St Patrick's Day parade by the 1st Battalion Irish Guards as she visits Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge is helped by Prince William, Duke of Cambridge as she gets her heel stuck in the grating while they take part in a St Patrick's Day parade as they visit Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • The Duke And Duchess Of Cambridge Visit the 1st Battalion Irish Guards On St Patrick's Day

    ALDERSHOT, ENGLAND - MARCH 17: Catherine, Duchess of Cambridge attends a St Patrick's Day parade by the 1st Battalion Irish Guards as she visits Aldershot Barracks on St Patrick's Day on March 17, 2013 in Aldershot, England. (Photo by Ben Pruchnie/Getty Images)

  • BRITAIN-ROYALS-SAINT PATRICK'S DAY

    Britain's Catherine, Duchess of Cambridge, holds on to Britain's Prince William, Duke of Cambridge, as she tries to release her shoe that was stuck in the grate during St Patrick's Day parade in Mons Barracks in Aldershot on March 17, 2013. The Duke of Cambridge attended the parade as Colonel of the Regiment and Catherine presented the traditional sprigs of shamrocks to the Officers and Guardsmen of the Regiment. AFP PHOTO/ADRIAN DENNIS (Photo credit should read ADRIAN DENNIS/AFP/Getty Images)