-
Notifications
You must be signed in to change notification settings - Fork 519
/
TraceUtilityNetwork.xaml
101 lines (100 loc) · 4.23 KB
/
TraceUtilityNetwork.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<UserControl x:Class="ArcGIS.WPF.Samples.TraceUtilityNetwork.TraceUtilityNetwork"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:MapView x:Name="MyMapView" GeoViewTapped="OnGeoViewTapped" />
<Border x:Name="MainUI"
HorizontalAlignment="Right"
VerticalAlignment="Top"
IsEnabled="False"
Style="{StaticResource BorderStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<RadioButton x:Name="IsAddingStartingLocations"
Content="Add starting locations"
GroupName="AddState"
IsChecked="True" />
<RadioButton Grid.Column="1"
Content="Add barriers"
GroupName="AddState" />
<Grid Grid.Row="1"
Grid.ColumnSpan="2"
HorizontalAlignment="Stretch"
VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
Margin="5"
VerticalAlignment="Center"
Text="Trace Type:" />
<ComboBox x:Name="TraceTypes"
Grid.Column="1"
Margin="5"
HorizontalContentAlignment="Stretch" />
</Grid>
<Button Grid.Row="2"
Margin="5"
Click="OnReset"
Content="Reset" />
<Button Grid.Row="2"
Grid.Column="1"
Margin="5"
Click="OnTrace"
Content="Trace" />
<TextBlock x:Name="Status"
Grid.Row="3"
Grid.ColumnSpan="2"
Margin="0,5,0,5"
Text="Loading sample..." />
<ProgressBar x:Name="IsBusy"
Grid.Row="4"
Grid.ColumnSpan="2"
Height="15"
IsIndeterminate="True"
Visibility="Collapsed" />
</Grid>
</Border>
<Border Name="TerminalPicker"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource BorderStyle}"
Visibility="Collapsed">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
Margin="5"
Text="Select the terminal for this junction." />
<ComboBox x:Name="Picker"
Grid.Row="1"
Margin="5">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Grid.Row="2"
Margin="5"
Click="OnTerminalSelected"
Content="Select" />
</Grid>
</Border>
</Grid>
</UserControl>