-
Notifications
You must be signed in to change notification settings - Fork 518
/
OfflineRouting.xaml
35 lines (35 loc) · 2 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
<ContentPage x:Class="ArcGIS.Samples.OfflineRouting.OfflineRouting"
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"
xmlns:networkAnalysis="clr-namespace:Esri.ArcGISRuntime.Tasks.NetworkAnalysis;assembly=Esri.ArcGISRuntime"
xmlns:resources="clr-namespace:ArcGIS.Resources">
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
<Border Padding="5" Style="{DynamicResource EsriSampleControlPanel}">
<Grid Padding="5"
MaximumWidthRequest="300"
RowDefinitions="auto,auto,auto"
RowSpacing="3">
<Label Grid.Row="0"
HeightRequest="{OnPlatform iOS=50}"
Text="Click the map to add up to 5 stops. Route lines will be displayed automatically." />
<CollectionView x:Name="TravelModesCollection"
Grid.Row="1"
HorizontalOptions="FillAndExpand"
SelectionMode="Single">
<CollectionView.ItemTemplate>
<!-- https://github.com/dotnet/maui/issues/20002 -->
<!-- DataType needs to be explicitly set to display DataTemplate content in release mode configuration -->
<DataTemplate x:DataType="{x:Type networkAnalysis:TravelMode}">
<Label Margin="5" Text="{Binding Name}" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<Button Grid.Row="2"
Clicked="ResetButton_Click"
Text="Reset" />
</Grid>
</Border>
</Grid>
</ContentPage>