-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathOfflineRouting.xaml
42 lines (42 loc) · 1.91 KB
/
OfflineRouting.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
<UserControl x:Class="ArcGIS.WinUI.Samples.OfflineRouting.OfflineRouting"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
<Grid>
<esriUI:MapView x:Name="MyMapView" />
<Border Style="{StaticResource BorderStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
Grid.Column="0"
FontWeight="SemiBold"
Text="Click the map to add up to 5 stops. Click again to finish placing it. Route lines will be displayed on-the-fly."
TextWrapping="Wrap" />
<ComboBox x:Name="TravelModesCombo"
Grid.Row="1"
Margin="0,5,0,5"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Grid.Row="2"
Grid.Column="0"
HorizontalAlignment="Stretch"
Click="ResetButton_Click"
Content="Reset" />
<TextBlock x:Name="ErrorTextBlock"
Grid.Row="3"
Foreground="Red"
TextWrapping="Wrap" />
</Grid>
</Border>
</Grid>
</UserControl>