Feature layer definition expression

FeatureLayer with definition expression
Loading

Code

<UserControl 
    x:Class="ArcGISRuntime.UWP.Samples.FeatureLayerDefinitionExpression.FeatureLayerDefinitionExpression"
    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="using:Esri.ArcGISRuntime"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <esriUI:MapView x:Name="MyMapView">
        </esriUI:MapView>
        <Border Background="White" Margin="20" Padding="20" VerticalAlignment="Top" HorizontalAlignment="Right" Width="320">
            <RelativePanel HorizontalAlignment="Stretch">
                <Button Content="Reset Expression"
		                HorizontalAlignment="Left"
		                Margin="10,10,0,0"
                        Padding="4"    
		                VerticalAlignment="Top"
		                Width="Auto"
		                Click="OnResetButtonClicked"
                        RelativePanel.RightOf="ApplyButton" />
                <Button x:Name="ApplyButton"
                        Content="Apply Expression"
		                HorizontalAlignment="Center"
		                Margin="10,10,0,0"
                        Padding="4"
		                VerticalAlignment="Top"
		                Width="Auto"
		                Click="OnApplyExpressionClicked" />
            </RelativePanel>
        </Border>
    </Grid>
</UserControl>


In this topic
  1. Code