Change feature layer renderer

This sample demonstrates how to change renderer for a feature layer. It also shows how to reset the renderer back to the default.

Change feature layer renderer

Code

<UserControl 
    x:Class="ArcGISRuntime.UWP.Samples.ChangeFeatureLayerRenderer.ChangeFeatureLayerRenderer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:esri="using:Esri.ArcGISRuntime"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <CommandBar Grid.Row="0">
            <AppBarButton Name="Reset" Content="Reset" Click="OnResetButtonClicked"/>
            <AppBarButton Name="ApplyRenderer" Content="Override" Click="OnOverrideButtonClicked"/>
        </CommandBar>
        <esriUI:MapView x:Name="MyMapView" Grid.Row="1"/>
    </Grid>
</UserControl>


In this topic
  1. Code