-
Notifications
You must be signed in to change notification settings - Fork 521
/
TraceUtilityNetwork.xaml
69 lines (69 loc) · 3.1 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
<ContentPage
x:Class="ArcGIS.Samples.TraceUtilityNetwork.TraceUtilityNetwork"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView"
GeoViewTapped="OnGeoViewTapped"
Style="{DynamicResource EsriSampleGeoView}" />
<StackLayout x:Name="BusyIndicator"
Grid.Row="0"
Grid.RowSpan="2"
Grid.ColumnSpan="2"
HeightRequest="40"
IsVisible="False"
VerticalOptions="Center">
<ActivityIndicator HeightRequest="40"
HorizontalOptions="Center"
IsRunning="True"
VerticalOptions="Center" />
</StackLayout>
<Border x:Name="ControlPanelBorder"
Padding="5"
Style="{DynamicResource EsriSampleControlPanel}">
<StackLayout x:Name="MainUI" Orientation="Vertical">
<Button x:Name="TracePickerButton"
Clicked="TraceTypeButtonPressed"
Text="Trace type: Connected" />
<Grid Margin="0,5"
ColumnSpacing="5"
RowSpacing="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Button x:Name="IsAddingStartingLocations"
Grid.Row="0"
Grid.Column="0"
Clicked="IsAddingStartingLocations_Clicked"
IsEnabled="False"
Text="Origin" />
<Button x:Name="IsAddingBarriers"
Grid.Row="0"
Grid.Column="1"
Clicked="IsAddingBarriers_Clicked"
Text="Barrier" />
<Button Grid.Row="1"
Grid.Column="1"
Clicked="OnReset"
Text="Reset" />
<Button Grid.Row="1"
Grid.Column="0"
Clicked="OnTrace"
Text="Trace" />
</Grid>
<Label x:Name="Status"
Grid.Row="0"
Margin="5"
HorizontalOptions="Center"
MaximumWidthRequest="200"
Text="Loading sample..." />
</StackLayout>
</Border>
</Grid>
</ContentPage>