ArcGIS Runtime SDK for .NET Samples

Change ENC display settings

Change ENC display settings
Loading

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">
    <UserControl.Resources>
        <Style TargetType="RadioButton">
            <Setter Property="Margin" Value="0,5,5,10" />
        </Style>
    </UserControl.Resources>
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border
            Background="White" BorderBrush="Black" BorderThickness="1"
            HorizontalAlignment="Right" VerticalAlignment="Top"
            Margin="30" Padding="20" Width="275">
            <StackPanel>
                <TextBlock Text="Color scheme"
                           FontWeight="Bold" />
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="DayRadioButton"
                                 GroupName="ColorScheme"
                                 Content="Day"
                                 IsChecked="True" />
                    <RadioButton x:Name="DuskRadioButton"
                                 GroupName="ColorScheme"
                                 Content="Dusk" />
                    <RadioButton x:Name="NightRadioButton"
                                 GroupName="ColorScheme"
                                 Content="Night" />
                </StackPanel>
                <TextBlock Text="Area symbolization type"
                           FontWeight="Bold" />
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="PlainAreaRadioButton"
                                 GroupName="Area"
                                 Content="Plain"
                                 IsChecked="True" />
                    <RadioButton x:Name="SymbolizedAreaRadioButton"
                                 GroupName="Area"
                                 Content="Symbolized" />
                </StackPanel>
                <TextBlock Text="Point symbolization type"
                           FontWeight="Bold" />
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="PaperchartRadioButton"
                                 GroupName="Point"
                                 Content="Paper Chart"
                                 IsChecked="True" />
                    <RadioButton x:Name="SimplifiedRadioButton"
                                 GroupName="Point"
                                 Content="Simplified" />
                </StackPanel>
                <Button Content="Apply"
                        Click="Button_Click" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code