ArcGIS Runtime SDK for .NET Samples

Change ENC display settings

Change ENC display settings
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.ChangeEncDisplaySettings.ChangeEncDisplaySettings"
    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">
    <UserControl.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="FontWeight" Value="SemiBold" />
            <Setter Property="Margin" Value="5,15,0,0" />
        </Style>
        <Style TargetType="RadioButton">
            <Setter Property="Margin" Value="5,5,0,0" />
        </Style>
    </UserControl.Resources>
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="15" Width="Auto">
            <StackPanel>
                <TextBlock Text="Color scheme" />
                <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" />
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="PlainAreaRadioButton" 
                                 GroupName="Area"
                                 Content="Plain"
                                 IsChecked="True" />
                    <RadioButton GroupName="Area"
                                 Content="Symbolized"/>
                </StackPanel>
                <TextBlock Text="Point symbolization type" />
                <StackPanel Orientation="Horizontal">
                    <RadioButton x:Name="PaperPointRadioButton" 
                                 GroupName="Point" 
                                 Content="Paper Chart" 
                                 IsChecked="True" />
                    <RadioButton GroupName="Point" 
                                 Content="Simplified"/>
                </StackPanel>
                <Button Content="Apply" 
                        HorizontalAlignment="Stretch"
                        Margin="5,5,5,5"
                        Click="Button_Click" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code