-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
67 lines (59 loc) · 3.03 KB
/
MainWindow.xaml
File metadata and controls
67 lines (59 loc) · 3.03 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<mah:MetroWindow x:Class="RouteEditorCS.MainWindow"
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:mah="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:gmap="clr-namespace:GMap.NET.WindowsPresentation;assembly=GMap.NET.WindowsPresentation"
xmlns:local="clr-namespace:RouteEditorCS"
Title="{Binding WindowTitle, UpdateSourceTrigger=PropertyChanged}"
Closing="Window_Closing"
GlowBrush="{DynamicResource MahApps.Brushes.Accent}"
Height="500" Width="600">
<mah:MetroWindow.LeftWindowCommands>
<mah:WindowCommands>
<Button Command="{Binding GuiZoomOutCommand}">
<iconPacks:PackIconModern Width="22"
Height="22"
Kind="MagnifyMinus" />
</Button>
<Button Command="{Binding GuiZoomInCommand}">
<iconPacks:PackIconModern Width="22"
Height="22"
Kind="MagnifyAdd" />
</Button>
</mah:WindowCommands>
</mah:MetroWindow.LeftWindowCommands>
<mah:MetroWindow.RightWindowCommands>
<mah:WindowCommands>
<Button Command="{Binding RemoveRouteCommand}" Name="btnDelete">
<iconPacks:PackIconModern Width="22"
Height="22"
Kind="Delete" />
</Button>
<Button Command="{Binding LoadRouteCommand}" Name="btnLoad">
<iconPacks:PackIconModern Width="22"
Height="22"
Kind="DiskDownload" />
</Button>
<Button Command="{Binding SaveRouteCommand}" Name="btnSave">
<iconPacks:PackIconModern Width="22"
Height="22"
Kind="Save" />
</Button>
</mah:WindowCommands>
</mah:MetroWindow.RightWindowCommands>
<Grid>
<Grid.LayoutTransform>
<ScaleTransform ScaleX="{Binding GuiZoomFactor}" ScaleY="{Binding GuiZoomFactor}" />
</Grid.LayoutTransform>
<gmap:GMapControl Name="gmapControl" Margin="10,10,10,43" MinZoom="0" MaxZoom="18" />
<Label Content="{Binding StatusLine}" Margin="10,0,10,10" VerticalAlignment="Bottom" HorizontalAlignment="Left" FontFamily="Consolas" />
<ComboBox Width="120" Margin="10,0,10,10" VerticalAlignment="Bottom" HorizontalAlignment="Right"
DisplayMemberPath="DisplayName"
SelectedValuePath="Key"
SelectedValue="{Binding SelectedMap, Mode=TwoWay}"
ItemsSource="{Binding Items}" />
</Grid>
</mah:MetroWindow>