New to Telerik UI for WPFStart a free 30-day trial

Control which show map legend. It is designed to be used in conjunction with ColorMeasureScale colorizer.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class MapLegend : HeaderedItemsControl

Inheritance: objectMapLegend

Constructors

Initializes a new instance of the MapLegend class.

C#
public MapLegend()

Fields

FormatProperty

DependencyProperty

Identifies the Format dependency property.

C#
public static readonly DependencyProperty FormatProperty

LabelLayoutProperty

DependencyProperty

Identifies the LabelLayout dependency property.

C#
public static readonly DependencyProperty LabelLayoutProperty

LabelLocationProperty

DependencyProperty

Identifies the LabelLocation dependency property.

C#
public static readonly DependencyProperty LabelLocationProperty

LayerProperty

DependencyProperty

Identifies the Layer dependency property.

C#
public static readonly DependencyProperty LayerProperty

MarkerRadiusXProperty

DependencyProperty

Identifies the MarkerRadiusX dependency property.

C#
public static readonly DependencyProperty MarkerRadiusXProperty

MarkerRadiusYProperty

DependencyProperty

Identifies the MarkerRadiusY dependency property.

C#
public static readonly DependencyProperty MarkerRadiusYProperty

MarkerSizeProperty

DependencyProperty

Identifies the MarkerSize dependency property.

C#
public static readonly DependencyProperty MarkerSizeProperty

MarkerSpacingProperty

DependencyProperty

Identifies the MarkerSpacing dependency property.

C#
public static readonly DependencyProperty MarkerSpacingProperty

MeasureScaleProperty

DependencyProperty

Identifies the MeasureScale dependency property.

C#
public static readonly DependencyProperty MeasureScaleProperty

OrientationProperty

DependencyProperty

Identifies the Orientation dependency property.

C#
public static readonly DependencyProperty OrientationProperty

Properties

Gets or sets string Format property for the Min an Max output.

C#
public string Format { get; set; }

Gets or sets the layout of the label.

C#
public LabelLayoutMode LabelLayout { get; set; }

Gets or sets the location of the Label.

C#
public LabelLocationMode LabelLocation { get; set; }

Gets or sets the information layer for the legend.

C#
public ILayer Layer { get; set; }

Gets or sets the corner radius X value for the marker shape.

C#
public double MarkerRadiusX { get; set; }

Gets or sets the corner radius Y value for the marker shape.

C#
public double MarkerRadiusY { get; set; }

Gets or sets the size of the marker shape.

C#
public Size MarkerSize { get; set; }

Gets or sets the spacing between marker shapes.

C#
public double MarkerSpacing { get; set; }

Gets or sets the MeasureScale instance.

C#
public ColorMeasureScale MeasureScale { get; set; }

Orientation

Orientation

Gets or sets the orientation of the control.

C#
public Orientation Orientation { get; set; }

Methods

Called to arrange and size the content.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

The computed size that is used to arrange the content.

Returns:

Size

The calculated size.

Undoes the effects of the PrepareContainerForItemOverride method.

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

The container element.

itemobject

The item.

Returns new ContentPresenter object.

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

ContentPresenter object.

Determines if the specified item is (or is eligible to be) its own container.

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

The item to check.

Returns:

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns:

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

C#
public override void OnApplyTemplate()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Prepares object for the container.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element.

itemobject

Item.

Refreshes the legend.

C#
public void Refresh()

Refreshes the legend using the colorizer object.

C#
public void Refresh(IMapShapeColorizer colorizer)
Parameters:colorizerIMapShapeColorizer

The IMapShapeColorizer instance.