William attended a charity event while resuming his royal duties after helping his wife, the Princess of Wales, who is recovering from abdominal surgery.