forked from Esri/arcgis-maps-sdk-dotnet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindRoute.xaml
32 lines (32 loc) · 1.35 KB
/
FindRoute.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
<UserControl
x:Class="ArcGISRuntime.UWP.Samples.FindRoute.FindRoute"
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}">
<StackPanel>
<TextBlock Text="Route directions:"
Margin="0,0,0,5"
FontWeight="SemiBold" />
<ListView x:Name="DirectionsListBox"
HorizontalAlignment="Stretch"
Height="300">
<ListView.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DirectionText}" TextWrapping="Wrap" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Button Content="Solve route"
HorizontalAlignment="Stretch"
Margin="0,5"
Click="SolveRouteClick" />
<Button Content="Reset"
HorizontalAlignment="Stretch"
Click="ResetClick" />
</StackPanel>
</Border>
</Grid>
</UserControl>