-
Notifications
You must be signed in to change notification settings - Fork 520
/
GenerateOfflineMapWithOverrides.xaml
74 lines (74 loc) · 3.17 KB
/
GenerateOfflineMapWithOverrides.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
71
72
73
74
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.GenerateOfflineMapWithOverrides.GenerateOfflineMapWithOverrides"
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">
<Grid>
<esriUI:MapView x:Name="MyMapView" />
<Button x:Name="TakeMapOfflineButton"
Margin="10"
Clicked="TakeMapOfflineButton_Click"
HorizontalOptions="End"
IsEnabled="True"
Text="Take map offline"
VerticalOptions="Start" />
<Grid x:Name="BusyIndicator"
Grid.RowSpan="2"
Grid.ColumnSpan="2"
BackgroundColor="#AA333333"
IsVisible="False">
<Grid HorizontalOptions="Center"
RowDefinitions="auto, auto, auto"
VerticalOptions="Center">
<Label Margin="10"
FontSize="18"
HorizontalOptions="Center"
TextColor="White"
VerticalOptions="Center">
<Label.FormattedText>
<FormattedString>
<Span Text="Generating offline map... " />
<Span x:Name="Percentage" Text="" />
</FormattedString>
</Label.FormattedText>
</Label>
<ProgressBar x:Name="ProgressBar"
Grid.Row="1"
Margin="0,0,0,10"
HeightRequest="10"
HorizontalOptions="Center"
IsEnabled="True"
VerticalOptions="Center"
WidthRequest="100" />
<Button x:Name="CancelJobButton"
Grid.Row="3"
Clicked="CancelJobButton_Click"
HorizontalOptions="Center"
Text="Cancel"
WidthRequest="100" />
</Grid>
</Grid>
<Grid x:Name="LoadingIndicator"
Grid.RowSpan="2"
Grid.ColumnSpan="2"
BackgroundColor="#AA333333"
IsVisible="True">
<Grid HorizontalOptions="Center" VerticalOptions="Center">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Label Margin="10"
FontSize="18"
Text="Loading online map..."
TextColor="White" />
<ProgressBar Grid.Row="1"
HeightRequest="10"
HorizontalOptions="Center"
IsEnabled="True"
VerticalOptions="Center"
WidthRequest="100" />
</Grid>
</Grid>
</Grid>
</ContentPage>