Change ENC Display Settings

This sample demonstrates how to control ENC environment settings. These settings apply to the display of all ENC content in your app.

Change ENC display settings

Instructions

This sample automatically downloads ENC data from ArcGIS Online before displaying the map.

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.ChangeEncDisplaySettings.ChangeEncDisplaySettings"
             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">
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border
                Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="275">
            <StackPanel>
                <Label FontWeight="Heavy">Color Scheme</Label>
                <StackPanel Orientation="Horizontal">
                    <RadioButton GroupName="ColorScheme" Content="Day" Margin="0,3,10,0" x:Name="radDay" IsChecked="True" />
                    <RadioButton GroupName="ColorScheme" Content="Dusk" Margin="0,3,10,0" x:Name="radDusk" />
                    <RadioButton GroupName="ColorScheme" Content="Night" Margin="0,3,10,0" x:Name="radNight" />
                </StackPanel>
                <Label FontWeight="Heavy">Area Symbolization Type</Label>
                <StackPanel Orientation="Horizontal">
                    <RadioButton GroupName="Area" Content="Plain" Margin="0,3,10,0" x:Name="radAreaPlain" IsChecked="True" />
                    <RadioButton GroupName="Area" Content="Symbolized" Margin="0,3,10,0" x:Name="radAreaSymbol" />
                </StackPanel>
                <Label FontWeight="Heavy">Point Symbolization Type</Label>
                <StackPanel Orientation="Horizontal">
                    <RadioButton GroupName="Point" Content="Paper Chart" Margin="0,3,10,0" x:Name="radPointPaper" IsChecked="True" />
                    <RadioButton GroupName="Point" Content="Simplified" Margin="0,3,10,0" x:Name="radPointSimple" />
                </StackPanel>
                <Button Content="Apply" Click="Button_Click" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code