ArcGIS Runtime SDK for .NET Samples

Feature layer definition expression

FeatureLayer with definition expression
Loading

Code

<UserControl
    x:Class="ArcGISRuntime.WPF.Samples.FeatureLayerDefinitionExpression.FeatureLayerDefinitionExpression"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <Grid>
        <esri:MapView x:Name="MyMapView" />
        <Border Background="White" BorderBrush="Black" BorderThickness="1"
                Margin="30" Padding="20" Width="375"
                VerticalAlignment="Top" HorizontalAlignment="Right">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Button Content="Apply expression"
                        Grid.Column="0"
                        Margin="0,0,5,0"
                        Click="OnApplyExpressionClicked" />
                <Button Content="Reset expression"
                        Grid.Column="1"
                        Click="OnResetButtonClicked" />
            </Grid>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code