-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
38 lines (36 loc) · 2.1 KB
/
MainWindow.xaml
File metadata and controls
38 lines (36 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Window x:Class="WPFSamples.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:smh="clr-namespace:SharpMap.UI.WPF;assembly=SharpMap.UI.WPF"
Title="MainWindow" Height="541" Width="679">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Menu Grid.Row="0" Name="Menu">
<MenuItem Header="_File">
<MenuItem Header="_Exit" Click="MenuItem_OnClick"/>
</MenuItem>
<MenuItem Header="_Add Layer">
<MenuItem Header="_ShapeFile" Name="AddShapeLayer" Click="AddShapeLayer_OnClick"/>
</MenuItem>
<MenuItem Header="_BackgroundMap">
<MenuItem Header="_OpenStreetMap" Name="BgOsm" Click="BgOSM_OnClick" IsCheckable="False"/>
<MenuItem Header="_StamenWaterColor" Name="BgStamenWaterColor" Click="BgStamenWaterColor_Click" IsCheckable="False"/>
</MenuItem>
<MenuItem Header="_Rotation" Click="MenuItem_Click">
<MenuItem Header="_0" Name="rot000" Click="Rotation_OnClick" IsCheckable="True" IsChecked="True"/>
<MenuItem Header="_30" Name="rot030" Click="Rotation_OnClick" IsCheckable="true"/>
<MenuItem Header="_60" Name="rot060" Click="Rotation_OnClick" IsCheckable="true"/>
<MenuItem Header="_90" Name="rot090" Click="Rotation_OnClick" IsCheckable="true"/>
</MenuItem> </Menu>
<smh:SharpMapHost Name="WpfMap" Grid.Row="1"></smh:SharpMapHost>
<StatusBar Grid.Row="2">
<StatusBarItem Name="Coordinates" HorizontalAlignment="Right">
<Label Content="{Binding CurrentMouseCoordinateString, ElementName=WpfMap, UpdateSourceTrigger=PropertyChanged}"></Label>
</StatusBarItem>
</StatusBar>
</Grid>
</Window>