ArcGIS Runtime SDK for .NET Samples

Offline Geocode

Geocode an address with an offline locator

Loading

Code

<UserControl 
    x:Class="ArcGISRuntime.UWP.Samples.OfflineGeocode.OfflineGeocode"
    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 Style="{StaticResource BorderStyle}">
            <StackPanel>
                <TextBlock Text="Enter an address and tap 🔎 to search."
                           IsColorFontEnabled="False"
                           TextAlignment="Center" FontWeight="SemiBold" />
                <AutoSuggestBox x:Name="AutoSuggestBox"
                                QueryIcon="Find"
                                HorizontalAlignment="Stretch"
                                Margin="0,5,0,0"
                                IsEnabled="False"
                                ItemsSource="{x:Bind _addresses}"
                                QuerySubmitted="AutoSuggestBox_OnQuerySubmitted" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code