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

Represents rectangle given in the geographical coordinates. Width and Height properties sets size of the rectangle in the current maps distance unit (miles or kilometers). The RadiusX and RadiusY properties are set in miles or kilometers as well.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class MapRectangle : MapShape, IExtendedData, IColorable, IGeoSizeProvider

Inheritance: objectMapShapeMapRectangle

Implements: IColorableIExtendedDataIGeoSizeProvider

Inherited Members MapShape.CaptionLocationPropertyMapShape.CaptionTemplatePropertyMapShape.FillPropertyMapShape.HighlightFillPropertyMapShape.ShapeFillPropertyMapShape.StrokeDashArrayPropertyMapShape.StrokeDashCapPropertyMapShape.StrokeDashOffsetPropertyMapShape.StrokeEndLineCapPropertyMapShape.StrokeLineJoinPropertyMapShape.StrokeMiterLimitPropertyMapShape.StrokePropertyMapShape.StrokeStartLineCapPropertyMapShape.StrokeThicknessPropertyMapShape.VisibilityListenerPropertyMapShape.CaptureMouse()MapShape.RaiseEvent(RoutedEventArgs)MapShape.ReleaseMouseCapture()MapShape.UseHighlightFill()MapShape.UseRegularFill()MapShape.OnMapCanvasChanged(MapCanvas, MapCanvas)MapShape.OnMapControlChanged(RadMap, RadMap)MapShape.PreprocessTransformation()MapShape.SetShapeFillStroke()MapShape.SetupEvents()MapShape.CaptionLocationMapShape.CaptionTemplateMapShape.ExtendedDataMapShape.FillMapShape.GeoBoundsMapShape.GeographicalBoundsMapShape.GeoSizeMapShape.HighlightFillMapShape.ShapeFillMapShape.StrokeMapShape.StrokeDashArrayMapShape.StrokeDashCapMapShape.StrokeDashOffsetMapShape.StrokeEndLineCapMapShape.StrokeLineJoinMapShape.StrokeMiterLimitMapShape.StrokeStartLineCapMapShape.StrokeThicknessMapShape.NeedUpdateLocationMapShape.MouseEnterMapShape.MouseLeaveMapShape.MouseLeftButtonDownMapShape.MouseLeftButtonUpMapShape.MouseMoveMapShape.MouseRightButtonDownMapShape.MouseRightButtonUpMapShape.MouseWheel...

Constructors

Initializes a new instance of the MapRectangle class.

C#
public MapRectangle()

Fields

DegreeHeightProperty

DependencyProperty

Identifies the DegreeHeight dependency property.

C#
public static readonly DependencyProperty DegreeHeightProperty

DegreeWidthProperty

DependencyProperty

Identifies the DegreeWidth dependency property.

C#
public static readonly DependencyProperty DegreeWidthProperty

HeightListenerProperty

DependencyProperty

Listener for the Height property.

C#
public static readonly DependencyProperty HeightListenerProperty

RadiusXProperty

DependencyProperty

Identifies the RadiusXProperty dependency property.

C#
public static readonly DependencyProperty RadiusXProperty

RadiusYProperty

DependencyProperty

Identifies the RadiusYProperty dependency property.

C#
public static readonly DependencyProperty RadiusYProperty

WidthListenerProperty

DependencyProperty

Listener for the Width property.

C#
public static readonly DependencyProperty WidthListenerProperty

Properties

Gets or sets height of the rectangle in degrees. This is a dependency property.

C#
public double DegreeHeight { get; set; }

Gets or sets width of the rectangle in degrees. This is a dependency property.

C#
public double DegreeWidth { get; set; }

Get or sets Left-Top corner of the rectangle.

C#
public Location Location { get; set; }

Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle. This is a dependency property.

C#
public double RadiusX { get; set; }

Gets or sets the y-axis radius of the ellipse that is used to round the corners of the rectangle. This is a dependency property.

C#
public double RadiusY { get; set; }

Gets bounding rectangle given in pixels.

C#
public override Rect ScreenBounds { get; }

Overrides: MapShape.ScreenBounds

Methods

Change location of the shape.

C#
public override void MoveTo(Location location)
Parameters:locationLocation

New location.

Overrides: MapShape.MoveTo(Location)

Prepare shape.

C#
protected override Size PrepareShape()
Returns:

Size

Overrides: MapShape.PrepareShape()