The Princess of Wales appeared alongside King Charles in support of cancer research.