ArcGIS Runtime SDK for .NET Samples

Integrated Windows Authentication

Web map items from an IWA-secured portal

Loading

Code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGISRuntime.Samples.IntegratedWindowsAuth.IntegratedWindowsAuth"
             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">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="2*" />
        </Grid.RowDefinitions>
        <ScrollView Grid.Row="0">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
               
                <!-- Inputs -->
                <Entry x:Name="PortalUrlEntry"
                       Placeholder="IWA-secured portal URL"
                        Grid.Row="0" Grid.ColumnSpan="2"/>
                <Button Grid.Row="1"
                        Text="Search secure portal"
                        Clicked="SearchSecureMapsButtonClick"/>
                <Button Grid.Row="1" Grid.Column="1"
                        Text="Search public portal"
                        Clicked="SearchPublicMapsButtonClick"/>
                <ListView x:Name="WebMapListView"
                        Grid.Row="2" Grid.ColumnSpan="2" />
            </Grid>
        </ScrollView>
        <Button x:Name="LoadWebMapButton"
                Text="Load web map"
                Grid.Row="1"
                IsEnabled="False"
                Clicked="AddMapItemClick"/>
        <ScrollView Grid.Row="2">
            <Label x:Name="MessagesTextBlock"
                   FontSize="Small"
                   HeightRequest="40"/>
        </ScrollView>
        <Grid x:Name="MyMapGrid"
              Grid.Row="3">
            <esriUI:MapView x:Name="MyMapView"/>
        </Grid>
    </Grid>
</ContentPage>


In this topic
  1. Code