XAML-Map-Control/SampleApps/ProjectionDemo/MainWindow.xaml

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-03-25 16:13:50 +01:00
<Window x:Class="ProjectionDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:map="clr-namespace:MapControl;assembly=MapControl.WPF"
Title="XAML MapControl - Projection Demo" Height="600" Width="800"
Loaded="Window_Loaded">
2025-01-24 20:12:31 +01:00
<Grid>
<map:Map MaxZoomLevel="22" ZoomLevel="10" Center="50.1,8.25" MapLayer="{Binding CurrentLayer}"
MapProjection="{Binding CurrentProjection}"
MouseRightButtonUp="Map_MouseRightButtonUp">
<map:Pushpin map:MapPanel.Location="{Binding PushpinLocation}"
Content="{Binding PushpinText}"/>
</map:Map>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="4">
2020-03-25 16:13:50 +01:00
<ComboBox Margin="2"
ItemsSource="{Binding Projections}"
SelectedItem="{Binding CurrentProjection}"
DisplayMemberPath="CrsId"/>
<ComboBox Margin="2"
ItemsSource="{Binding Layers}"
SelectedValue="{Binding CurrentLayer}"
SelectedValuePath="Value"
DisplayMemberPath="Key"/>
</StackPanel>
2025-01-24 20:12:31 +01:00
</Grid>
2020-03-25 16:13:50 +01:00
</Window>