Prince William was attending a seasonal event for families of 1st Battalion Mercian Regiment in Wiltshire.