<UserControl
    x:Class="MapsSamples.DemoMaps"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MapsSamples"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c1="using:C1.Xaml.Maps"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">     
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <TextBlock FontSize="16" Text="Map Source: " VerticalAlignment="Center" Margin="5"/>
            <ComboBox x:Name="comboSources" Width="180" SelectionChanged="comboSources_SelectionChanged" Margin="5"/>
        </StackPanel>
        <Border Grid.Row="1">
            <Grid>
                <c1:C1Maps Name="maps" Zoom="3">
                    <c1:C1Maps.Layers>
                        <c1:C1MapItemsLayer>
                            <Grid x:Name="item" Tapped="item_Tapped" c1:C1MapCanvas.LatLong="-79.9247, 40.4587" c1:C1MapCanvas.Pinpoint="12, 12">
                                <Ellipse Width="24" Height="24" Fill="White" Stroke="Red" StrokeThickness="2"/>
                                <TextBlock Text="C1" FontSize="14" Foreground="Red" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                <FlyoutBase.AttachedFlyout>
                                    <MenuFlyout>
                                        <MenuFlyoutItem Text="ComponentOne" />
                                    </MenuFlyout>
                                </FlyoutBase.AttachedFlyout>
                            </Grid>
                        </c1:C1MapItemsLayer>
                    </c1:C1Maps.Layers>
                </c1:C1Maps>
                <local:MapTool Maps="{Binding ElementName=maps}"></local:MapTool>
                
            </Grid>
        </Border>
    </Grid>
</UserControl>
