Then, it is required to specify a layer which contains vector items to be annotated by this legend. To do this, assign this layer object to the ItemsLayerLegend.Layer property.
Below you will find the more detailed information about various types of legends supported by the Map control.
A Color-Based Legend is intended to detail the meaning of specific colors. In this case, a layer specified by a legend's ItemsLayerLegend.Layer property should contain vector items colorized by one of the following colorizers: