forked from Esri/arcgis-maps-sdk-dotnet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindPlace.xaml
61 lines (61 loc) · 2.98 KB
/
FindPlace.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"
xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime"
x:Class="ArcGISRuntime.Samples.FindPlace.FindPlace">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="40" />
<RowDefinition Height="40" />
<RowDefinition Height="20" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<Label Text="Search" Grid.Row="0" Grid.Column="0" />
<Label Text="Location" Grid.Row="1" Grid.Column="0" />
<SearchBar x:Name="MySearchBox" Text="Coffee"
Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
IsEnabled="False"
Unfocused="MyLocationBox_Unfocused" Focused="MySearchBox_Focused"
TextChanged="MySearchBox_TextChanged" />
<SearchBar x:Name="MyLocationBox" Text="Current Location"
IsEnabled="False"
Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
Unfocused="MyLocationBox_Unfocused" Focused="MySearchBox_Focused"
TextChanged="MyLocationBox_TextChanged" />
<Button x:Name="MySearchButton" Text="Search All"
Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2"
IsEnabled="False"
Clicked="MySearchButton_Clicked" />
<Button x:Name="MySearchRestrictedButton" Text="Search in View"
Grid.Column="2" Grid.Row="2"
IsEnabled="False"
Clicked="MySearchRestrictedButton_Clicked" />
<ActivityIndicator x:Name="MyProgressBar" IsRunning="True"
Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3"
IsVisible="False" />
<Grid Grid.Row="4" Grid.ColumnSpan="3">
<ListView x:Name="lstViewSuggestions"
IsVisible="False"
ItemSelected="lstViewSuggestions_ItemSelected">
<!-- Listview appears when there are suggestions -->
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal">
<Label Text="{Binding}" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<esriUI:MapView x:Name="MyMapView" />
</Grid>
</Grid>
</ContentPage>