<UserControl x:Class="Demo.RadMap.UI.MainPage"
    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:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.DataVisualization" 
    xmlns:telerikMapping="clr-namespace:Telerik.Windows.Controls.Map;assembly=Telerik.Windows.Controls.DataVisualization"
    mc:Ignorable="d"
    d:DesignHeight="480" d:DesignWidth="640">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="200"/>
        </Grid.ColumnDefinitions>

        <telerik:RadMap x:Name="myMap" MouseClickMode="None" MouseDoubleClickMode="Center" NavigationVisibility="Visible" ScaleVisibility="Visible" ZoomLevel="5" Center="30.684297,-99.06924" Grid.Column="0">
            <telerik:RadMap.Provider>
                <telerikMapping:OpenStreetMapProvider/>
            </telerik:RadMap.Provider>
            <telerikMapping:InformationLayer x:Name="InformationLayer" />
        </telerik:RadMap>
        <StackPanel Orientation="Vertical" Grid.Column="1" Background="LightGray">

            <Border BorderBrush="Black" BorderThickness="2" Margin="5" CornerRadius="5" Background="WhiteSmoke">
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Text="Provider" Margin="3" FontWeight="Bold"/>
                    <ComboBox x:Name="mapProvider" SelectionChanged="mapProvider_SelectionChanged" SelectedIndex="1" Height="20" Width="90" HorizontalAlignment="Left" Margin="5,0,5,5">
                        <ComboBox.Items>
                            <ComboBoxItem Content="Empty"/>
                            <ComboBoxItem Content="OSM"/>
                        </ComboBox.Items>
                    </ComboBox>

                    <Button Content="Add ShapeFile" Click="Button_Click" Height="25" Width="90" HorizontalAlignment="Center" Margin="0,10,0,0" />

                </StackPanel>
            </Border>

            <Border BorderBrush="Black" BorderThickness="2" Margin="5" CornerRadius="5" Background="WhiteSmoke">
                
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Text="Events" Margin="3" FontWeight="Bold"/>
                    <ListBox Height="150" BorderBrush="{x:Null}" x:Name="eventList"/>
                </StackPanel>
            </Border>
        </StackPanel>
    </Grid>
</UserControl>
