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

Base class which represents any shape specified in the geographical coordinates.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class MapShape : Control, IExtendedData, IColorable, IGeoSizeProvider

Inheritance: objectMapShape

Derived Classes: MapEllipseMapLineMapPathMapPolylineMapRectangle

Implements: IColorableIExtendedDataIGeoSizeProvider

Constructors

Initializes a new instance of the MapShape class.

C#
protected MapShape()

Fields

CaptionLocationProperty

DependencyProperty

Identifies the CaptionLocation dependency property.

C#
public static readonly DependencyProperty CaptionLocationProperty

CaptionTemplateProperty

DependencyProperty

Identifies the CaptionTemplate dependency property.

C#
public static readonly DependencyProperty CaptionTemplateProperty

FillProperty

DependencyProperty

Identifies the Fill dependency property.

C#
public static readonly DependencyProperty FillProperty

HighlightFillProperty

DependencyProperty

Identifies the HighlightFill dependency property.

C#
public static readonly DependencyProperty HighlightFillProperty

ShapeFillProperty

DependencyProperty

Identifies the ShapeFillProperty dependency property.

C#
public static readonly DependencyProperty ShapeFillProperty

StrokeDashArrayProperty

DependencyProperty

Identifies the StrokeDashArray dependency property.

C#
public static readonly DependencyProperty StrokeDashArrayProperty

StrokeDashCapProperty

DependencyProperty

Identifies the StrokeDashCap dependency property.

C#
public static readonly DependencyProperty StrokeDashCapProperty

StrokeDashOffsetProperty

DependencyProperty

Identifies the StrokeDashOffset dependency property.

C#
public static readonly DependencyProperty StrokeDashOffsetProperty

StrokeEndLineCapProperty

DependencyProperty

Identifies the StrokeEndLineCap dependency property.

C#
public static readonly DependencyProperty StrokeEndLineCapProperty

StrokeLineJoinProperty

DependencyProperty

Identifies the StrokeLineJoin dependency property.

C#
public static readonly DependencyProperty StrokeLineJoinProperty

StrokeMiterLimitProperty

DependencyProperty

Identifies the StrokeMiterLimit dependency property.

C#
public static readonly DependencyProperty StrokeMiterLimitProperty

StrokeProperty

DependencyProperty

Identifies the Stroke dependency property.

C#
public static readonly DependencyProperty StrokeProperty

StrokeStartLineCapProperty

DependencyProperty

Identifies the StrokeStartLineCap dependency property.

C#
public static readonly DependencyProperty StrokeStartLineCapProperty

StrokeThicknessProperty

DependencyProperty

Identifies the StrokeThickness dependency property.

C#
public static readonly DependencyProperty StrokeThicknessProperty

VisibilityListenerProperty

DependencyProperty

Listener for the Visibility property.

C#
public static readonly DependencyProperty VisibilityListenerProperty

Properties

Gets or sets the location of the map shape caption.

C#
public Location CaptionLocation { get; set; }

CaptionTemplate

DataTemplate

Gets or sets caption content template. You can bind elements in the caption template to extended properties using ExtendedDataConverter and Data property of the ExtendedData object.

C#
public DataTemplate CaptionTemplate { get; set; }

Gets or sets shape's extended data.

C#
public ExtendedData ExtendedData { get; set; }

Implements: IExtendedData.ExtendedData

Fill

Brush

Gets or sets the Brush that specifies how the shape's interior is painted.

C#
public Brush Fill { get; set; }

Gets geographical bounds of the shape.

C#
public LocationRect GeoBounds { get; }

Implements: IGeoSizeProvider.GeoBounds

Gets geographical bounds of the shape.

C#
public LocationRect GeographicalBounds { get; }

Gets or sets geographical size of the shape.

C#
public Size GeoSize { get; }

Implements: IGeoSizeProvider.GeoSize

Gets or sets the highlight shape fill properties.

C#
public MapShapeFill HighlightFill { get; set; }

Implements: IColorable.HighlightFill

Gets or sets value which indicates whether we should update location of this shape.

C#
protected bool NeedUpdateLocation { get; set; }

Gets bounding rectangle given in pixels.

C#
public abstract Rect ScreenBounds { get; }

Gets or sets the shape fill properties.

C#
public MapShapeFill ShapeFill { get; set; }

Implements: IColorable.ShapeFill

Stroke

Brush

Gets or sets the Brush that specifies how the Shape outline is painted.

C#
public Brush Stroke { get; set; }

StrokeDashArray

DoubleCollection

Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to outline shapes.

C#
public DoubleCollection StrokeDashArray { get; set; }

StrokeDashCap

PenLineCap

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn.

C#
public PenLineCap StrokeDashCap { get; set; }

Gets or sets a Double that specifies the distance within the dash pattern where a dash begins.

C#
public double StrokeDashOffset { get; set; }

Gets or sets a PenLineCap enumeration value that describes the Shape at the end of a line.

C#
public PenLineCap StrokeEndLineCap { get; set; }

StrokeLineJoin

PenLineJoin

Gets or sets a PenLineJoin enumeration value that specifies the type of join that is used at the vertices of a Shape.

C#
public PenLineJoin StrokeLineJoin { get; set; }

Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of a Shape element.

C#
public double StrokeMiterLimit { get; set; }

Gets or sets a PenLineCap enumeration value that describes the Shape at the start of a Stroke.

C#
public PenLineCap StrokeStartLineCap { get; set; }

Gets or sets the width of the Shape outline.

C#
public double StrokeThickness { get; set; }

Methods

Sets mouse capture to a UIElement.

C#
public bool CaptureMouse()
Returns:

bool

Returns true if the object has mouse capture; otherwise, returns false.

Change location of the shape.

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

New location.

Is called when map canvas is changed.

C#
protected virtual void OnMapCanvasChanged(MapCanvas oldCanvas, MapCanvas newCanvas)
Parameters:oldCanvasMapCanvas

Old map canvas.

newCanvasMapCanvas

New map canvas.

Is called when map control is changed.

C#
protected virtual void OnMapControlChanged(RadMap oldMap, RadMap newMap)
Parameters:oldMapRadMap

Old map control.

newMapRadMap

New map control.

Calculates pixel size and prepare graphical shape representation.

C#
protected abstract Size PrepareShape()
Returns:

Size

Preprocess render transform.

C#
protected void PreprocessTransformation()

Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).

C#
public void RaiseEvent(RoutedEventArgs args)
Parameters:argsRoutedEventArgs

A RoutedEventArgs that contains the event data and also identifies the event to raise.

Removes mouse capture from a UIElement. After this call, typically no object holds mouse capture.

C#
public void ReleaseMouseCapture()

Sets shape's filling and stroke parameters.

C#
protected void SetShapeFillStroke()

Creates mouse event handlers.

C#
protected void SetupEvents()

Use highlight fill and stroke settings.

C#
public void UseHighlightFill()

Use regular fill and stroke settings.

C#
public void UseRegularFill()

Events

MouseEnter

MouseEventHandler

Occurs when any mouse button is pressed while the pointer is over this element.

C#
public event MouseEventHandler MouseEnter

MouseLeave

MouseEventHandler

Occurs when the mouse pointer leaves the bounds of this element.

C#
public event MouseEventHandler MouseLeave

MouseLeftButtonDown

MouseButtonEventHandler

Occurs when the left mouse button is pressed while the mouse pointer is over this element.

C#
public event MouseButtonEventHandler MouseLeftButtonDown

MouseLeftButtonUp

MouseButtonEventHandler

Occurs when the left mouse button is released while the mouse pointer is over this element.

C#
public event MouseButtonEventHandler MouseLeftButtonUp

MouseMove

MouseEventHandler

Occurs when the mouse pointer moves while over this element.

C#
public event MouseEventHandler MouseMove

MouseRightButtonDown

MouseButtonEventHandler

Occurs when the right mouse button is pressed while the mouse pointer is over this element.

C#
public event MouseButtonEventHandler MouseRightButtonDown

MouseRightButtonUp

MouseButtonEventHandler

Occurs when the right mouse button is released while the mouse pointer is over this element.

C#
public event MouseButtonEventHandler MouseRightButtonUp

MouseWheel

MouseWheelEventHandler

Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

C#
public event MouseWheelEventHandler MouseWheel