Class
AsyncReaderBase

Base class for the asynchronous map shape readers (KML, ESRI, WKT/WKB).

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public abstract class AsyncReaderBase : Freezable

Inheritance: objectAsyncReaderBase

Derived Classes: AsyncFileReaderBaseAsyncSqlGeospatialDataReader

Constructors

AsyncReaderBase()

Declaration

cs-api-definition
protected AsyncReaderBase()

Fields

ClearLayerProperty

Identifies the ClearLayer dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClearLayerProperty

Field Value

DependencyProperty

CoordinateConverterProperty

Identifies the CoordinateConverter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CoordinateConverterProperty

Field Value

DependencyProperty

ExtendedPropertySetProperty

Identifies the ExtendedPropertySet dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ExtendedPropertySetProperty

Field Value

DependencyProperty

ToolTipFormatProperty

Identifies the ToolTipFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ToolTipFormatProperty

Field Value

DependencyProperty

ToolTipStyleProperty

Identifies the ToolTipStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ToolTipStyleProperty

Field Value

DependencyProperty

ToolTipTemplateProperty

Identifies the ToolTipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ToolTipTemplateProperty

Field Value

DependencyProperty

Properties

ClearLayer

Gets or sets the ClearLayer property. If it is set to true, then the reader clears its information layer after reading.

Declaration

cs-api-definition
public bool ClearLayer { get; set; }

Property Value

bool

CoordinateConverter

Gets or sets the CoordinateConverter applied to the reader.

Declaration

cs-api-definition
public ICoordinateConverter CoordinateConverter { get; set; }

Property Value

ICoordinateConverter

ExtendedPropertySet

Gets or sets extended property set which will be used during shape file (KML or ESRI) reading.

Declaration

cs-api-definition
public ExtendedPropertySet ExtendedPropertySet { get; set; }

Property Value

ExtendedPropertySet

Remarks

Can be null. In this case extended property set will be created depends on the extended data available in the KML file or in the attributes file (DBF).

Layer

Target visualization layer.

Declaration

cs-api-definition
public VisualizationLayer Layer { get; set; }

Property Value

VisualizationLayer

ToolTipFormat

Gets or sets tooltip format. Either ToolTipFormat or ToolTipTemplate should be specified. If both properties are set, then ToolTipTemplate will be used.

Declaration

cs-api-definition
public string ToolTipFormat { get; set; }

Property Value

string

ToolTipStyle

Gets or sets the style applied to the toolTip.

Declaration

cs-api-definition
public Style ToolTipStyle { get; set; }

Property Value

Style

ToolTipTemplate

Gets or sets tooltip content template. Either ToolTipFormat or ToolTipTemplate should be specified. If both properties are set, then ToolTipTemplate will be used. You can bind elements in the tooltip template to extended properties using ExtendedDataConverter and Data property of the ExtendedData object.

Declaration

cs-api-definition
public DataTemplate ToolTipTemplate { get; set; }

Property Value

DataTemplate

Methods

CancelAsync()

Cancels loading of shapes.

Declaration

cs-api-definition
public void CancelAsync()

CancelAsync(int)

Cancels loading of shapes by process id.

Declaration

cs-api-definition
public void CancelAsync(int processId)

Parameters

processId

int

Id of the process.

CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Freezable derived class.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

Null.

OnReaderPropertyChanged(DependencyPropertyChangedEventArgs)

Occurs when the properties which are used for loading are changed.

Declaration

cs-api-definition
protected virtual void OnReaderPropertyChanged(DependencyPropertyChangedEventArgs eventArgs)

Parameters

eventArgs

DependencyPropertyChangedEventArgs

Event arguments.

ReadAsync()

Reads geospatial data using asynchronous mode.

Declaration

cs-api-definition
public abstract int ReadAsync()

Returns

int

ReadAsync(object)

Reads geospatial data using asynchronous mode.

Declaration

cs-api-definition
public abstract int ReadAsync(object userState)

Parameters

userState

object

A user-defined object that is passed to the method invoked when the asynchronous operation completes.

Returns

int

ReaderPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

Starts loading when the properties which are used for loading are changed.

Declaration

cs-api-definition
protected static void ReaderPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs eventArgs)

Parameters

source

DependencyObject

Source object.

eventArgs

DependencyPropertyChangedEventArgs

Event arguments.

Events

PreviewReadShapeData

Occurs when a shape data is read.

Declaration

cs-api-definition
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeData

Event Value

PreviewReadShapeDataCompletedEventHandler

PreviewReadShapeDataCompleted

Occurs when the reader completes to read shapes.

Declaration

cs-api-definition
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeDataCompleted

Event Value

PreviewReadShapeDataCompletedEventHandler

ProgressChanged

Occurs when part of data is read.

Declaration

cs-api-definition
public event ProgressChangedEventHandler ProgressChanged

Event Value

ProgressChangedEventHandler

ReadShapeDataCompleted

Occurs when the reader completes to read shapes and pass them to target information layer.

Declaration

cs-api-definition
public event ReadShapeDataCompletedEventHandler ReadShapeDataCompleted

Event Value

ReadShapeDataCompletedEventHandler