ClassMapLegend
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:
public class MapLegend : HeaderedItemsControl
Inheritance: objectMapLegend
Constructors
MapLegend()
Initializes a new instance of the MapLegend class.
Declaration
public MapLegend()
Fields
FormatProperty
Identifies the Format dependency property.
Declaration
public static readonly DependencyProperty FormatProperty
Field Value
DependencyProperty
LabelLayoutProperty
Identifies the LabelLayout dependency property.
Declaration
public static readonly DependencyProperty LabelLayoutProperty
Field Value
DependencyProperty
LabelLocationProperty
Identifies the LabelLocation dependency property.
Declaration
public static readonly DependencyProperty LabelLocationProperty
Field Value
DependencyProperty
LayerProperty
Identifies the Layer dependency property.
Declaration
public static readonly DependencyProperty LayerProperty
Field Value
DependencyProperty
MarkerRadiusXProperty
Identifies the MarkerRadiusX dependency property.
Declaration
public static readonly DependencyProperty MarkerRadiusXProperty
Field Value
DependencyProperty
MarkerRadiusYProperty
Identifies the MarkerRadiusY dependency property.
Declaration
public static readonly DependencyProperty MarkerRadiusYProperty
Field Value
DependencyProperty
MarkerSizeProperty
Identifies the MarkerSize dependency property.
Declaration
public static readonly DependencyProperty MarkerSizeProperty
Field Value
DependencyProperty
MarkerSpacingProperty
Identifies the MarkerSpacing dependency property.
Declaration
public static readonly DependencyProperty MarkerSpacingProperty
Field Value
DependencyProperty
MeasureScaleProperty
Identifies the MeasureScale dependency property.
Declaration
public static readonly DependencyProperty MeasureScaleProperty
Field Value
DependencyProperty
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
DependencyProperty
Properties
Format
Gets or sets string Format property for the Min an Max output.
LabelLayout
Gets or sets the layout of the label.
Declaration
public LabelLayoutMode LabelLayout { get; set; }
Property Value
LabelLocation
Gets or sets the location of the Label.
Declaration
public LabelLocationMode LabelLocation { get; set; }
Property Value
Layer
Gets or sets the information layer for the legend.
MarkerRadiusX
Gets or sets the corner radius X value for the marker shape.
MarkerRadiusY
Gets or sets the corner radius Y value for the marker shape.
MarkerSize
Gets or sets the size of the marker shape.
Declaration
public Size MarkerSize { get; set; }
Property Value
Size
MarkerSpacing
Gets or sets the spacing between marker shapes.
MeasureScale
Gets or sets the MeasureScale instance.
Declaration
public ColorMeasureScale MeasureScale { get; set; }
Property Value
Orientation
Gets or sets the orientation of the control.
Declaration
public Orientation Orientation { get; set; }
Property Value
Orientation
Methods
ArrangeOverride(Size)
Called to arrange and size the content.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
The computed size that is used to arrange the content.
Returns
Size
The calculated size.
ClearContainerForItemOverride(DependencyObject, object)
Undoes the effects of the PrepareContainerForItemOverride method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
item
The item.
GetContainerForItemOverride()
Returns new ContentPresenter object.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
ContentPresenter object.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.
Declaration
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
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.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
PrepareContainerForItemOverride(DependencyObject, object)
Prepares object for the container.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element.
item
Item.
Refresh(IMapShapeColorizer)
Refreshes the legend using the colorizer object.
Declaration
public void Refresh(IMapShapeColorizer colorizer)
Parameters
colorizer
The IMapShapeColorizer instance.