-
Notifications
You must be signed in to change notification settings - Fork 520
/
SearchPortalMaps.xaml
89 lines (89 loc) · 3.8 KB
/
SearchPortalMaps.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.SearchPortalMaps.SearchPortalMaps"
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>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
<StackLayout Grid.Row="0"
HorizontalOptions="FillAndExpand"
Orientation="Horizontal">
<Button Margin="5"
Clicked="ShowSearchUI"
HorizontalOptions="FillAndExpand"
Text="Search Maps" />
<Button Margin="5"
Clicked="GetMyMaps"
HorizontalOptions="FillAndExpand"
Text="My Maps" />
</StackLayout>
<esriUI:MapView x:Name="MyMapView" Grid.Row="1" />
<Border x:Name="SearchMapsUI"
Grid.Row="1"
BackgroundColor="{AppThemeBinding Light=#dfdfdf,
Dark=#303030}"
HorizontalOptions="Center"
IsVisible="False"
StrokeShape="RoundRectangle 10"
VerticalOptions="Center">
<Grid Padding="10"
ColumnDefinitions="auto,auto"
RowDefinitions="auto,auto">
<Label Grid.Row="0"
Grid.Column="0"
Margin="5"
Text="Search text:"
VerticalTextAlignment="Center" />
<Entry x:Name="SearchTextEntry"
Grid.Row="0"
Grid.Column="1"
Margin="5"
HorizontalOptions="Start"
Placeholder=""
VerticalOptions="Center"
WidthRequest="240" />
<Button Grid.Row="1"
Grid.Column="0"
Margin="20,0"
Clicked="CancelSearchClicked"
HorizontalOptions="FillAndExpand"
Text="Cancel" />
<Button Grid.Row="1"
Grid.Column="1"
Clicked="SearchMapsClicked"
HorizontalOptions="FillAndExpand"
Text="Search" />
</Grid>
</Border>
<Border x:Name="MapsListBorder"
Grid.Row="1"
BackgroundColor="{AppThemeBinding Light=#dfdfdf,
Dark=#303030}"
HorizontalOptions="Center"
IsVisible="False"
StrokeShape="RoundRectangle 10"
VerticalOptions="Center"
WidthRequest="{OnIdiom Default=-1,
Desktop=500}">
<StackLayout Padding="10" HeightRequest="{OnIdiom Default=-1, Desktop=500}">
<ListView x:Name="MapsListView"
Margin="5"
ItemSelected="MapItemSelected"
SelectionMode="Single"
VerticalScrollBarVisibility="Default">
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding Title}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Button Margin="5"
Clicked="ListCloseClicked"
Text="Close" />
</StackLayout>
</Border>
</Grid>
</ContentPage>