Tsui,
Have added the wpfmap control as mentioned above. I dragged and dropped the wpfmap onto the map portion of the screen as xaml below:
<Window x:Class="UseGrid.MainWindow"
xmlns="schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="schemas.microsoft.com/winfx/2006/xaml"
xmlns:uc1="clr-namespace:ThinkGeo.MapSuite.WpfDesktopEdition;assembly=WpfDesktopEdition"
Title="MainWindow" Height="560" Width="1130">
<Grid ShowGridLines="True"
TextBlock.FontSize="20">
<Grid.RowDefinitions>
<RowDefinition Height="124*" />
<RowDefinition Height="0"/>
<RowDefinition Height="317" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="171*"/>
<ColumnDefinition Width="0*" />
<ColumnDefinition Width="611*" />
<ColumnDefinition Width="109*" />
</Grid.ColumnDefinitions>
<GridSplitter Grid.RowSpan="3" Width="8"
Background="Black"
ResizeBehavior="PreviousAndNext"
ResizeDirection="Columns" Grid.ColumnSpan="2" />
Content="Vehicles in Fleet" Click="Button_Click_1" Grid.Column="2" />
Content="Event View" Grid.Row="2" />
<ListBox Height="80" HorizontalAlignment="Left" Margin="2,79,0,0" Name="TaskList" VerticalAlignment="Top" Width="152">
<ListBoxItem Content="Create a zone" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Edit a zone" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Delete a zone" FontSize="12" FontWeight="Bold" />
</ListBox>
<ListBox Grid.Row="2" Height="257" HorizontalAlignment="Left" Margin="12,25,0,0" Name="ManCatalogList" VerticalAlignment="Top" Width="142">
<ListBoxItem Content="Fleet Management" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Asset Monitoring" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Zone Management" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Zone Set Management" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Event Handling" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Asset Management" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="Asset Group Management" FontSize="12" FontWeight="Bold" />
</ListBox>
<ListBox Height="23" HorizontalAlignment="Left" Margin="8,24,0,0" Name="listBox1" VerticalAlignment="Top" Width="146" AllowDrop="True">
<ListBoxItem Content="FleetA" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="FleetB" FontSize="12" FontWeight="Bold" />
<ListBoxItem Content="FleetC" FontSize="12" FontWeight="Bold" />
</ListBox>
<uc1:WpfMap Grid.Column="2" Grid.Row="2" HorizontalAlignment="Left" Margin="1,0,0,0" Name="wpfMap1" VerticalAlignment="Top" Height="317" Width="758" />
<Border CornerRadius="4" BorderBrush="Gray" BorderThickness="1" Background="#33ffffff" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="329,11,0,0" Grid.Column="2" Grid.Row="2">
<StackPanel Orientation="Horizontal">
<StackPanel.Resources>
<Style x:Key="bt" TargetType="Button">
<Setter Property="Width" Value="30"></Setter>
<Setter Property="Margin" Value="2"></Setter>
</Style>
</StackPanel.Resources>
<Button Style="{StaticResource bt}" x:Name="btnDisplayPolygon" Click="button_Click">
<Image Source="/Resource/AQUA.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackNormal" Click="button_Click">
<Image Source="/Resource/Normal.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackPoint" Click="button_Click">
<Image Source="/Resource/Point.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackLine" Click="button_Click">
<Image Source="/Resource/Line.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackRectangle" Click="button_Click">
<Image Source="/Resource/Rectangle.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackSquare" Click="button_Click" >
<Image Source="/Resource/Square.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackPolygon" Click="button_Click">
<Image Source="/Resource/Polygon.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackCircle" Click="button_Click">
<Image Source="/Resource/Circle.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackEllipse" Click="button_Click">
<Image Source="/Resource/Ellipse.png" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackEdit" Click="button_Click">
<Image Source="/Resource/Edit.gif" />
</Button>
<Button Style="{StaticResource bt}" x:Name="btnTrackDelete" Click="button_Click">
<Image Source="/Resource/Delete.png" />
</Button>
</StackPanel>
</Border>
</Grid>
</Window>
However, still run into "The tag 'WpfMap' does not exist in XML namespace 'clr-namespace ThinkGeo.MapSuite.WpfDekstopEdition;assembly=WpfDesktopEdition'. Line 54 Position 10
What could be the problem? and how to fix it?
Thanks a lot.
Regards,
Franklin