Duchess of Cambridge marks end of community exhibition