Feature layer rendering mode (Scene)

This sample demonstrates how to use load settings to change the preferred rendering mode for a scene. Static rendering mode only redraws features periodically when a scene view is navigating, while dynamic mode dynamically re-renders as the scene moves.

Feature layer rendering modes in a scene

Instructions

Press the 'Animated Zoom' button to trigger a zoom. Observe the differences between the two scenes.

Code

<UserControl x:Class="ArcGISRuntime.WPF.Samples.FeatureLayerRenderingModeScene.FeatureLayerRenderingModeScene"
             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>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label Content="Static Mode:" Foreground="Red" Grid.Row="0" Grid.ColumnSpan="2" />
        <esri:SceneView x:Name="MyStaticSceneView" Grid.Row="1" Grid.ColumnSpan="2" />
        <Label Content="Dynamic Mode:" Foreground="Red" Grid.Row="2" Grid.Column="0" />
        <Button Content="Animated Zoom" Click="Button_Click" Grid.Row="2" Grid.Column="1" />
        <esri:SceneView x:Name="MyDynamicSceneView" Grid.Row="3" Grid.ColumnSpan="2" />
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code