Raster rendering rule

This sample demonstrates how to create an ImageServiceRaster, fetch the rendering rules from the service info, and use a RenderingRule to create an ImageServiceRaster and add it to a raster layer.

Raster rendering rules

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.RasterRenderingRule.RasterRenderingRule"
             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="http://schemas.esri.com/arcgis/runtime/2013"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border
                Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="10" Padding="10" Width="300">
            <StackPanel>
                <TextBlock Text="Select a Rendering Rule" Margin="0,0,0,2" TextWrapping="Wrap" />
                <ComboBox Name="comboBox_RenderingRuleChooser" SelectionChanged="comboBox_RenderingRuleChooser_SelectionChanged"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code