<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="MapsSamples.Factories" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <UserControl.Resources>
        <DataTemplate x:Name="factoryTemplate" x:Key="factoryTemplate">
            <Grid Width="60" Height="60" c1:C1MapCanvas.Pinpoint="30,30" c1:C1MapCanvas.LatLong="{Binding Position}">
                <Image Source="/MapsSamples.4;component/Resources/factory.png" />
                <Grid Background="Transparent" ToolTipService.ToolTip="{Binding Name}" />
                
            </Grid>
        </DataTemplate>
        <DataTemplate x:Name="officeTemplate" x:Key="officeTemplate">
            <Grid Width="60" Height="60" c1:C1MapCanvas.Pinpoint="30,30" c1:C1MapCanvas.LatLong="{Binding Position}">
                <Image Source="/MapsSamples.4;component/Resources/office.png" />
                <Grid Background="Transparent" ToolTipService.ToolTip="{Binding Name}" />
                <Border HorizontalAlignment="Right" VerticalAlignment="Top" Background="#AA000000" CornerRadius="12" Margin="0,-10,0,0" Width="25" Height="25" BorderBrush="Green" BorderThickness="1">
                    <TextBlock Text="{Binding Stores}" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" />
                </Border>
            </Grid>
        </DataTemplate>
        <DataTemplate x:Name="storeTemplate" x:Key="storeTemplate">
            <Grid Width="60" Height="60" c1:C1MapCanvas.Pinpoint="30,30" c1:C1MapCanvas.LatLong="{Binding Position}">
                <Image Source="/MapsSamples.4;component/Resources/store.png" />
                <Grid Background="Transparent" ToolTipService.ToolTip="{Binding Name}" />
            </Grid>
        </DataTemplate>
    </UserControl.Resources>

    <Grid Background="#FF010413">
        <c1:C1Maps x:Name="map" Zoom="2" Center="-45, 30">
            <c1:C1Maps.Source>
            	<c1:VirtualEarthHybridSource />
            </c1:C1Maps.Source>
        </c1:C1Maps>
    </Grid>
</UserControl>