-
Notifications
You must be signed in to change notification settings - Fork 520
/
ConfigureOverridesPage.xaml
109 lines (109 loc) · 4.81 KB
/
ConfigureOverridesPage.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
103
104
105
106
107
108
109
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.GenerateOfflineMapWithOverrides.ConfigureOverridesPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Configure offline map job">
<ScrollView>
<Grid Margin="10"
ColumnDefinitions="auto, *, auto"
ColumnSpacing="5"
RowDefinitions="auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto"
RowSpacing="5"
VerticalOptions="Center">
<Grid.Resources>
<Style TargetType="Label">
<Setter Property="VerticalOptions" Value="Center" />
</Style>
<Style x:Key="TitleLabelStyle" TargetType="Label">
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="HorizontalOptions" Value="Center" />
<Setter Property="Grid.ColumnSpan" Value="3" />
</Style>
<Style TargetType="Switch">
<Setter Property="HorizontalOptions" Value="Start" />
</Style>
</Grid.Resources>
<Label FontSize="Large"
Style="{StaticResource TitleLabelStyle}"
Text="Overrides" />
<Label Grid.Row="1"
Style="{StaticResource TitleLabelStyle}"
Text="Adjust the basemap" />
<Label Grid.Row="2" Text="Min scale:" />
<Slider x:Name="MinScaleEntry"
Grid.Row="2"
Grid.Column="1"
Maximum="23"
Minimum="0"
Value="0" />
<Label Grid.Row="2"
Grid.Column="2"
Text="{Binding Source={x:Reference MinScaleEntry}, Path=Value, StringFormat='{0:N0}'}" />
<Label Grid.Row="3" Text="Max scale:" />
<Slider x:Name="MaxScaleEntry"
Grid.Row="3"
Grid.Column="1"
Maximum="23"
Minimum="0"
Value="23" />
<Label Grid.Row="3"
Grid.Column="2"
Text="{Binding Source={x:Reference MaxScaleEntry}, Path=Value, StringFormat='{0:N0}'}" />
<Label Grid.Row="4" Text="Buffer distance:" />
<Slider x:Name="ExtentBufferEntry"
Grid.Row="4"
Grid.Column="1"
Maximum="500"
Minimum="0"
Value="250" />
<Label Grid.Row="4"
Grid.Column="2"
Text="{Binding Source={x:Reference ExtentBufferEntry}, Path=Value, StringFormat='{0:N0}m'}" />
<Label Grid.Row="5"
Style="{StaticResource TitleLabelStyle}"
Text="Choose layers" />
<Label Grid.Row="6" Text="System valves:" />
<Switch x:Name="SysValvesLayerCheckbox"
Grid.Row="6"
Grid.Column="1"
IsToggled="True" />
<Label Grid.Row="7"
Margin="0,0,5,0"
Text="Service connections:" />
<Switch x:Name="ServiceConnCheckbox"
Grid.Row="7"
Grid.Column="1" />
<Label Grid.Row="8"
Style="{StaticResource TitleLabelStyle}"
Text="Apply a feature layer filer" />
<Label Grid.Row="9"
Margin="0,0,5,5"
Text="Min flow rate:" />
<Slider x:Name="FlowRateFilterEntry"
Grid.Row="9"
Grid.Column="1"
Maximum="999"
Minimum="0"
Value="500" />
<Label Grid.Row="9"
Grid.Column="2"
MinimumWidthRequest="40"
Text="{Binding Source={x:Reference FlowRateFilterEntry}, Path=Value, StringFormat='{0:N0} GPM'}" />
<Label Grid.Row="10"
Style="{StaticResource TitleLabelStyle}"
Text="Crop layers to extent" />
<Label Grid.Row="11" Text="Water pipes:" />
<Switch x:Name="CropLayerCheckbox"
Grid.Row="11"
Grid.Column="1"
IsToggled="True" />
<Button Grid.Row="12"
Grid.ColumnSpan="3"
Background="{AppThemeBinding Light=LightGray,
Dark=Gray}"
Clicked="TakeMapOffline_Clicked"
IsEnabled="True"
Text="Take map offline" />
</Grid>
</ScrollView>
</ContentPage>