Last year, I wrote a series of blog posts about Bing Maps development, which were very popular among netizens. I haven't written a blog post about Bing Maps for a long time. Recently I followed Bing Maps WPF Control, here, I will share my personal experience on Bing Maps WPF Control with netizens. You are also welcome to lose your skills.
1. Download Bing Maps WPF Control
The development of Bing Maps based on WPF is basically the same as that of Silverlight. The difference is the WPF Control or bate version, which is not as complete as Bing Maps Silverlight Control, I will not talk about the development of Bing Maps Silverlight Control here. If you are interested, refer:[Silverlight] Bing Maps articles.
Bing Maps WPF Control: http://www.microsoft.com/download/en/details.aspx? Id = 27165
2. Apply Bing Maps WPF Control
The Application of Bing Maps WPF Control is basically the same as that of Bing Maps Silverlight Control. You only need to add a reference to the namespace of the Map space in WPF to directly use the Map Control to display the Map effect.
Xmlns: m = "clr-namespace: Microsoft. Maps. MapControl. WPF; assembly = Microsoft. Maps. MapControl. WPF"
<Window x: Class = "BingMapWPF. MainWindow"
Xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml"
Xmlns: m = "clr-namespace: Microsoft. Maps. MapControl. WPF; assembly = Microsoft. Maps. MapControl. WPF"
Title = "MainWindow" Height = "350" Width = "525">
<Grid>
<M: Map x: Name = "map" CredentialsProvider = "">
<M: MapLayer x: Name = "mapLayer"/>
</M: Map>
</Grid>
</Window>
Iii. Bing Maps WPF Control primitive Rendering
In Bing Maps Silverlight Control, rendering performance of a large number of elements is very low. Here, a simple test of Bing Maps WPF Control is conducted, if 5000 place names are randomly extracted from the database and rendered in the map, there is still a major performance problem. However, direct rendering is not optimized here, there is still a lot of room for optimization on rendering performance. Theoretically, the performance is higher than that of Bing Maps Silverlight Control.
This section briefly introduces this article. If you are interested in Bing Maps development, you may wish to take a look at [Silverlight] Bing Maps series Article summary.
Description
This document is a learning note and is intended to be shared with people with lofty ideals. You are welcome to repost this article. To save the author's Creative Enthusiasm, mark the original article connection in a prominent position.
Author: Beniao
Article Source: http://beniao.cnblogs.com/or http://www.cnblogs.com/