<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Factories.Page" mc:Ignorable="d" d:DesignHeight="732" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:Factories" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">

    <UserControl.Resources>
        <DataTemplate x:Name="factoryTemplate">
            <local:EntityView Icon="factory.png">
                <local:EntityView.Decorator>
                    <local:FactoryDecorator />
                </local:EntityView.Decorator>
            </local:EntityView>
        </DataTemplate>
        <DataTemplate x:Name="officeTemplate">
            <local:EntityView Icon="office.png">
                <local:EntityView.Decorator>
                    <local:OfficeDecorator />
                </local:EntityView.Decorator>
            </local:EntityView>
        </DataTemplate>
        <DataTemplate x:Name="storeTemplate">
            <local:EntityView Icon="store.png">
                <local:EntityView.Decorator>
                    <local:StoreDecorator />
                </local:EntityView.Decorator>
            </local:EntityView>
        </DataTemplate>
    </UserControl.Resources>

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

		<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>

			<Image Stretch="Fill" Opacity="0.6" Source="/Factories.5;component/Resources/background.png" />
			<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" />
			</Grid>
		</Grid>
		
		<Grid Width="120" Height="117" VerticalAlignment="Top" Margin="0,320,15,0" HorizontalAlignment="Right">
			<Path Fill="#FF3D5D84" Stretch="Fill" Stroke="#FF3F4F60" Data="M5.5,20.5 L5.5,101.1941 L114.5,101.1941 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,103.19411 C119.5,104.85097 118.15685,106.19412 116.5,106.19412 L3.5000007,106.19412 C1.8431466,106.19412 0.50000077,104.85097 0.5,103.19411 L0.5,3.500001 C0.50000077,1.8431457 1.8431466,0.5 3.5000007,0.5 z" Margin="0,0,0,0" VerticalAlignment="Top" Height="117" />

			<Rectangle Margin="5,21.5470008850098,5,5.0019998550415" 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>

			<Image Stretch="Fill" Opacity="0.6" Source="/Factories.5;component/Resources/background-small.png" />
			<TextBlock Height="16" Text="Show/Hide options" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="11" TextAlignment="Center" Foreground="#FFE1F1FF" VerticalAlignment="Top" Margin="0,4,0,0" />
        
			<StackPanel Margin="15,20,5,5" VerticalAlignment="Center">
			    <CheckBox Name="labelsCheck" Content="Map labels" FontSize="10" FontFamily="Arial" Foreground="#FF143258" />
			    <CheckBox Name="officesCheck" Content="Offices" FontSize="10" FontFamily="Arial" Foreground="#FF143258" />
                <CheckBox Name="factoriesCheck" Content="Factories" FontSize="10" FontFamily="Arial" Foreground="#FF143258" />
			    <CheckBox Name="storesCheck" Content="Stores" FontSize="10" FontFamily="Arial" Foreground="#FF143258" />
			</StackPanel>
		</Grid>
    </Grid>
</UserControl>