-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathCreateKmlMultiTrack.xaml
70 lines (70 loc) · 3.67 KB
/
CreateKmlMultiTrack.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
70
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.CreateKmlMultiTrack.CreateKmlMultiTrack"
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">
<ContentPage.Resources>
<Style x:Key="IconStyle" TargetType="Button">
<Style.Setters>
<Setter Property="FontFamily" Value="calcite-ui-icons-24" />
<Setter Property="FontSize" Value="25" />
<Setter Property="Margin" Value="5" />
</Style.Setters>
</Style>
</ContentPage.Resources>
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
<Border Style="{DynamicResource EsriSampleControlPanel}">
<StackLayout>
<StackLayout x:Name="RecordingUI">
<Label x:Name="ElementsCountLabel" Text="Clicked record to capture KML track elements." />
<Label x:Name="TracksCountLabel" Text="Number of tracks in MultiTrack: 0" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Button x:Name="RecenterButton"
Clicked="RecenterButton_Clicked"
IsEnabled="False"
Style="{StaticResource IconStyle}"
Text=""
ToolTipProperties.Text="Recenter" />
<Button x:Name="RecordTrackButton"
Grid.Column="1"
Margin="5"
Clicked="RecordTrackButton_Clicked"
Text="Record Track" />
<Button x:Name="SaveButton"
Grid.Column="2"
Clicked="SaveButton_Clicked"
IsEnabled="False"
Style="{StaticResource IconStyle}"
Text=""
ToolTipProperties.Text="Save" />
</Grid>
</StackLayout>
<StackLayout x:Name="ViewingUI" IsVisible="False">
<Label Text="Displaying contents of saved HikingTracks.kmz file." />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Picker x:Name="TracksPicker"
Margin="5"
HorizontalTextAlignment="Center"
SelectedIndexChanged="TracksPicker_SelectionChanged"
VerticalTextAlignment="Center" />
<Button Grid.Column="1"
Clicked="ResetButton_Clicked"
Style="{StaticResource IconStyle}"
Text=""
ToolTipProperties.Text="Reset" />
</Grid>
</StackLayout>
</StackLayout>
</Border>
</Grid>
</ContentPage>