ArcGIS Runtime SDK for .NET Samples

Read shapefile metadata

Metadata for a shapefile dataset
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.ReadShapefileMetadata.ReadShapefileMetadata"
    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 BorderBrush="Black" BorderThickness="1" Background="White"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
            <Grid x:Name="InfoPanel">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Text="{Binding Credits}"
                           Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                           FontWeight="SemiBold" TextAlignment="Center" />
                <TextBlock Text="{Binding Summary}"
                           Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                           TextWrapping="Wrap" />
                <Image x:Name="ShapefileThumbnailImage"
                       Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
                       Margin="10" />
                <TextBlock Text="Tags:"
                           Grid.Row="3" Grid.Column="0"
                           FontWeight="SemiBold"
                           VerticalAlignment="Center" />
                <ListBox ItemsSource="{Binding Tags}"
                         Grid.Row="3" Grid.Column="1"
                         Height="80"
                         Margin="10,0"
                         HorizontalAlignment="Stretch" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code