-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathGenerateOfflineMap.xaml
102 lines (99 loc) · 4.15 KB
/
GenerateOfflineMap.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<UserControl x:Class="ArcGIS.WinUI.Samples.GenerateOfflineMap.GenerateOfflineMap"
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 x:Name="takeOfflineArea"
Width="375"
Margin="30"
Padding="20"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Background="White"
BorderBrush="Black"
BorderThickness="1">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Button x:Name="TakeMapOfflineButton"
Width="250"
Click="TakeMapOfflineButton_Click"
Content="Take map offline"
IsEnabled="True" />
</StackPanel>
</Border>
<Border x:Name="messageArea"
Width="450"
Margin="30"
Padding="5"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Background="White"
BorderBrush="Black"
BorderThickness="1"
Visibility="Collapsed">
<StackPanel>
<TextBlock Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontWeight="Bold"
Text="Map is offline!" />
</StackPanel>
</Border>
<Grid x:Name="busyIndicator"
Background="#807f7f7f"
Visibility="Collapsed">
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<TextBlock Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="18"
Foreground="White">
<Run Text="Generating offline map... " />
<Run x:Name="Percentage" Text="" />
</TextBlock>
<ProgressBar x:Name="progressBar"
Grid.Row="1"
Width="100"
Height="10"
Margin="0,0,0,10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEnabled="True"
Maximum="100"
Minimum="0" />
<Button x:Name="CancelJobButton"
Grid.Row="3"
Width="100"
HorizontalAlignment="Center"
Click="CancelJobButton_Click"
Content="Cancel" />
</Grid>
</Grid>
<Grid x:Name="loadingIndicator"
Background="#807f7f7f"
Visibility="Visible">
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<TextBlock Margin="10"
FontSize="18"
Foreground="White"
Text="Loading online map..." />
<ProgressBar Grid.Row="1"
Width="100"
Height="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEnabled="True"
IsIndeterminate="True" />
</Grid>
</Grid>
</Grid>
</UserControl>