<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="EsriMapSamples.DragDrop" mc:Ignorable="d" d:DesignHeight="337" d:DesignWidth="400" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <UserControl.Resources>
        <!-- marker for items in the esri control (any UI element) -->
        <esri:MarkerSymbol x:Key="factoryMarker" OffsetX="40" OffsetY="40">
            <esri:MarkerSymbol.ControlTemplate>
                <ControlTemplate>
                    <Image Source="../Resources/factory.png" Width="80" Height="80" ToolTipService.ToolTip="Factory" />
                </ControlTemplate>
            </esri:MarkerSymbol.ControlTemplate>
        </esri:MarkerSymbol>
        <esri:MarkerSymbol x:Key="storeMarker" OffsetX="40" OffsetY="40">
            <esri:MarkerSymbol.ControlTemplate>
                <ControlTemplate>
                    <Image Source="../Resources/store.png" Width="80" Height="80" ToolTipService.ToolTip="Store" />
                </ControlTemplate>
            </esri:MarkerSymbol.ControlTemplate>
        </esri:MarkerSymbol>
        <esri:MarkerSymbol x:Key="officeMarker" OffsetX="40" OffsetY="40">
            <esri:MarkerSymbol.ControlTemplate>
                <ControlTemplate>
                    <Image Source="../Resources/office.png" Width="80" Height="80" ToolTipService.ToolTip="Office" />
                </ControlTemplate>
            </esri:MarkerSymbol.ControlTemplate>
        </esri:MarkerSymbol>
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="White">
        <esri:Map Background="White" Name="map1" WrapAround="True" Extent="-130,5,-70,65">
            <esri:Map.Layers>
                <esri:LayerCollection>
                    <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />
                    <esri:GraphicsLayer ID="ItemLayer" x:Name="itemLayer" />
                </esri:LayerCollection>
            </esri:Map.Layers>
        </esri:Map>
        <Grid Width="120" Height="290" VerticalAlignment="Top" Margin="15" HorizontalAlignment="Right">
            <Path Fill="#FF3D5D84" Stretch="Fill" Stroke="#FF3F4F60" Data="M5.5,20.5 L5.5,284.5 L114.5,284.5 L114.5,20.5 L5.5,20.5 z M3.5000007,0.5 L116.5,0.5 C118.15685,0.5 119.5,1.8431457 119.5,3.500001 L119.5,286.5 C119.5,288.15686 118.15685,289.5 116.5,289.5 L3.5000007,289.5 C1.8431466,289.5 0.50000077,288.15686 0.5,286.5 L0.5,3.500001 C0.50000077,1.8431457 1.8431466,0.5 3.5000007,0.5 z" />

            <Rectangle Margin="5,20,5,5" RadiusX="0" RadiusY="0" Stroke="#FF3F4F60">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#7FFFFFFF" Offset="0" />
                        <GradientStop Color="#B2FFFFFF" Offset="0.1" />
                        <GradientStop Color="#B2FFFFFF" Offset="0.9" />
                        <GradientStop Color="#7FFFFFFF" Offset="1" />
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <TextBlock Height="16" Text="Drag to add an Item" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="11" TextAlignment="Center" Foreground="#FFE1F1FF" VerticalAlignment="Top" Margin="0,4,0,0" />

            <Grid Margin="5,20,5,5">
                <StackPanel x:Name="toolbar" VerticalAlignment="Center">
                    <Border x:Name="bdrFactory">
                        <StackPanel>
                            <Image Source="../Resources/factory.png" Width="70" Height="70" />
                            <TextBlock Text="Factory" HorizontalAlignment="Center" Foreground="#FF3D5D84" />
                        </StackPanel>
                    </Border>
                    <Border x:Name="bdrOffice">
                        <StackPanel>
                            <Image Source="../Resources/office.png" Width="70" Height="70" />
                            <TextBlock Text="Office" HorizontalAlignment="Center" Foreground="#FF3D5D84" />
                        </StackPanel>
                    </Border>
                    <Border x:Name="bdrStore">
                        <StackPanel>
                            <Image Source="../Resources/store.png" Width="70" Height="70" />
                            <TextBlock Text="Store" HorizontalAlignment="Center" Foreground="#FF3D5D84" />
                        </StackPanel>
                    </Border>
                </StackPanel>
            </Grid>
        </Grid>
        <Grid Width="141" Height="56" VerticalAlignment="Top" Margin="15,15,0,0" HorizontalAlignment="Left" d:LayoutOverrides="VerticalAlignment">
            <Rectangle Margin="5,0,5,5" RadiusX="0" RadiusY="0" Stroke="#FF3F4F60" Height="51" VerticalAlignment="Bottom">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    	<GradientStop Color="#7FFFFFFF" Offset="0" />
                    	<GradientStop Color="#B2FFFFFF" Offset="0.1" />
                    	<GradientStop Color="#B2FFFFFF" Offset="0.9" />
                    	<GradientStop Color="#7FFFFFFF" Offset="1" />
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <Path Fill="#FF3D5D84" Stretch="Fill" Stroke="#FF3F4F60" Data="M5.5,85.651787 L5.5,268.02026 L114.5,268.02026 L114.5,85.651787 L5.5,85.651787 z M3.5000007,0.5 L116.5,0.5 C118.15685,0.5 119.5,1.8431457 119.5,3.500001 L119.5,286.5 C119.5,288.15686 118.15685,289.5 116.5,289.5 L3.5000007,289.5 C1.8431466,289.5 0.50000077,288.15686 0.5,286.5 L0.5,3.500001 C0.50000077,1.8431457 1.8431466,0.5 3.5000007,0.5 z" UseLayoutRounding="False" Height="57" VerticalAlignment="Bottom" />

            <TextBlock Height="16" Text="Drop Coordinates" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="11" TextAlignment="Center" Foreground="#FFE1F1FF" VerticalAlignment="Top" Margin="2" />

            <Grid Margin="5,20,5,5">
                <TextBlock x:Name="txtCoords" Text="" VerticalAlignment="Top" Foreground="Black" Margin="5" />
            </Grid>
        </Grid>
        
    </Grid>
</UserControl>