/
Geocoder.xaml
76 lines (66 loc) · 3.13 KB
/
Geocoder.xaml
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
68
69
70
71
72
73
74
75
76
<Window x:Class="GeocodingHarness.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:local="clr-namespace:GeocodingHarness"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="900" Background="#eee">
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<Button Grid.Row="0" Grid.Column="0" Background="AliceBlue" Name="GeocodeThis" Content="Geocode!" Click="GeocodeThis_Click" MinWidth="100"/>
<TextBox Grid.Row="0" Grid.Column="1" Name="InputAddress" TextWrapping="Wrap" />
</Grid>
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="40" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<Label HorizontalAlignment="right" Grid.Row="0" Grid.Column="0" Content="Locations Found"/>
<TextBox Grid.Row="0" Grid.Column="1" Name="LocationsFound" />
<Label HorizontalAlignment="right" Grid.Row="1" Grid.Column="0" Content="Geocoding Status"/>
<TextBox Grid.Row="1" Grid.Column="1" Name="Status" />
<Label HorizontalAlignment="right" Grid.Row="2" Grid.Column="0" Content="Latitude" />
<TextBox Grid.Row="2" Grid.Column="1" Name="Latitude" />
<Label HorizontalAlignment="right" Grid.Row="3" Grid.Column="0" Content="Longitude" />
<TextBox Grid.Row="3" Grid.Column="1" Name="Longitude" />
<Label HorizontalAlignment="right" Grid.Row="4" Grid.Column="0" Content="Geocoded Address" />
<TextBox Grid.Row="4" Grid.Column="1" Name="GeocodedAddress" />
<Label HorizontalAlignment="right" Grid.Row="5" Grid.Column="0" Content="Place Id"/>
<TextBox Grid.Row="5" Grid.Column="1" Name="PlaceId" />
<Label HorizontalAlignment="right" Grid.Row="6" Grid.Column="0" Content="Formatted Address" />
<TextBox Grid.Row="6" Grid.Column="1" Name="FormattedAddress" />
<Label HorizontalAlignment="right" Grid.Row="7" Grid.Column="0" Content="Location Bounds " />
<TextBox Grid.Row="7" Grid.Column="1" Name="LocationBounds" />
<Label HorizontalAlignment="right" Grid.Row="8" Grid.Column="0" Content="Address Components" />
<TextBox Grid.Row="8" Grid.Column="1" Name="AddressComponents" />
</Grid>
</Grid>
</Grid>
</Window>