ArcGIS Runtime SDK for .NET Samples

Read shapefile metadata

Metadata for a shapefile dataset
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.WPF.Samples.ReadShapefileMetadata.ReadShapefileMetadata"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="300"
                BorderBrush="Black" BorderThickness="1"
                Background="White">
            <Grid x:Name="InfoPanel">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="160" />
                    <RowDefinition Height="100" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                           FontWeight="Bold" HorizontalAlignment="Center"
                           Text="{Binding Credits}" />
                <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                           Margin="5"
                           TextWrapping="Wrap"
                           Text="{Binding Summary}" />
                <Image x:Name="ShapefileThumbnailImage"
                       Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
                       Margin="5" />
                <TextBlock FontWeight="Bold" Margin="5"
                           VerticalAlignment="Center"
                           Grid.Row="3" Grid.Column="0"
                           Text="Tags:" />
                <ListBox Height="80" HorizontalAlignment="Stretch"
                         Grid.Row="3" Grid.Column="1"
                         Margin="0,5,5,0"
                         ItemsSource="{Binding Tags}" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code