<UserControl
    x:Class="ControlExplorer.Controls.Maps.Factories"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ControlExplorer.Controls.Maps"
    xmlns:c1="using:C1.Xaml.Maps"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">

    <UserControl.Resources>
        <DataTemplate x:Name="factoryTemplate" x:Key="factoryTemplate">
            <Grid Width="60" Height="60" c1:C1MapCanvas.Pinpoint="30, 30" 
                  c1:C1MapCanvas.LongLat="{Binding Position}">
                <Image Source="ms-appx:///Resources/Maps/factory.png" />
            </Grid>
        </DataTemplate>
        <DataTemplate x:Name="officeTemplate" x:Key="officeTemplate">
            <Grid Width="60" Height="60" c1:C1MapCanvas.Pinpoint="30, 30"
                  c1:C1MapCanvas.LongLat="{Binding Position}">
                <Image Source="ms-appx:///Resources/Maps/office.png" />
                <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.LongLat="{Binding Position}">
                <Image Source="ms-appx:///Resources/Maps/store.png" />
            </Grid>
        </DataTemplate>
    </UserControl.Resources>

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