Symbolize a shapefile

This sample demonstrates how to apply a custom renderer to a shapefile displayed by a feature layer.

Fill symbol applied to a polygon shapefile

Instructions

Click the button to switch renderers.

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.SymbolizeShapefile.SymbolizeShapefile"
    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">
            <Button x:Name="RendererButton"
                    Content="Change renderer"
                    IsEnabled="False"
                    HorizontalAlignment="Stretch"
                    Click="RendererButton_Click" />
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code