I'm experimenting with AsyncShapeFileReader using the provided example. It works as expected with AsyncShapeFileReader's Source and DataSource properties set. The only thing I wish to change in the example is to use AsyncReaderSourceCollection to asyncronously load multiple shape files and benefit UI Virtualization.
Visualization layer displays only the last AsyncReaderSource (myshape2.shp), although ReadShapeDataCompleted is called twice without exception. I wonder is it possible to load multiple shapes asynchronously and benefit Items Virtualization?
01.
<
telerik:VisualizationLayer.VirtualizationSource
>
02.
<
telerik:MapShapeDataVirtualizationSource
>
03.
<
telerik:MapShapeDataVirtualizationSource.Reader
>
04.
<
telerik:AsyncShapeFileReader
x:Name
=
"mapShapeDataReader"
>
05.
<
telerik:AsyncReaderSourceCollection
>
06.
<
telerik:AsyncReaderSource
Source
=
"/MyProject;component/Resources/myshape1.shp"
DataSource
=
"/MyProject;component/Resources/myshape1.dbf"
/>
07.
<
telerik:AsyncReaderSource
Source
=
"/MyProject;component/Resources/myshape2.shp"
DataSource
=
"/MyProject;component/Resources/myshape2.dbf"
/>
08.
</
telerik:AsyncReaderSourceCollection
>
09.
</
telerik:AsyncShapeFileReader
>
10.
</
telerik:MapShapeDataVirtualizationSource.Reader
>
11.
</
telerik:MapShapeDataVirtualizationSource
>
12.
</
telerik:VisualizationLayer.VirtualizationSource
>
Visualization layer displays only the last AsyncReaderSource (myshape2.shp), although ReadShapeDataCompleted is called twice without exception. I wonder is it possible to load multiple shapes asynchronously and benefit Items Virtualization?