Skip To Content ArcGIS for Developers Sign In Dashboard

Offline Geocode

Geocode an address with an offline locator

Loading

<?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"
             xmlns:resources="clr-namespace:Forms.Resources;assembly=ArcGISRuntime"
             x:Class="ArcGISRuntimeXamarin.Samples.OfflineGeocode.OfflineGeocode">
    <RelativeLayout>
        <esriUI:MapView x:Name="MyMapView" Style="{StaticResource MapWithFormStyle}"
                        BindingContext="{x:Reference Name=ResponsiveFormContainer}" />
        <resources:ResponsiveFormContainer x:Name="ResponsiveFormContainer">
            <StackLayout>
                <SearchBar x:Name="MySearchBar" 
                           Placeholder="Find address" 
                           IsEnabled="false" 
                           SearchButtonPressed="Handle_TextChanged" />
                <Button x:Name="MySuggestButton"
                        Text="Suggest"
                        IsEnabled="false"
                        Clicked="SuggestionButtonTapped" />
            </StackLayout>
        </resources:ResponsiveFormContainer>
    </RelativeLayout>
</ContentPage>

In this topic
  1. Code