Support legacy classes in legend control