-
Notifications
You must be signed in to change notification settings - Fork 518
/
NavigateRoute.xaml
44 lines (44 loc) · 1.93 KB
/
NavigateRoute.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
<UserControl x:Class="ArcGIS.WinUI.Samples.NavigateRoute.NavigateRoute"
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 />
<RowDefinition Height="100" />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button x:Name="StartNavigationButton"
Grid.Column="0"
Margin="5"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Click="StartNavigation"
Content="Navigate route"
IsEnabled="False" />
<Button x:Name="RecenterButton"
Grid.Column="1"
Margin="5"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Click="RecenterButton_Click"
Content="Recenter"
IsEnabled="False" />
</Grid>
<TextBlock x:Name="MessagesTextBlock"
Grid.Row="3"
Margin="5"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
TextWrapping="Wrap" />
</Grid>
</Border>
</Grid>
</UserControl>