Simple Feature Layer

This sample demonstrates how to add a local feature layer to the Map using Extensible Application Markup Language (XAML). The point geometries are symbolized with red SimpleMarkerSymbols which are defined by a SimpleRenderer in XAML. Only the first 1000 features display because there is a default max feature limit. To override this you can set the MaxRecords property.
Download Sample Application<UserControl x:Class="ArcGISWPFSDK.LocalFeatureLayerSimple" 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/client/2009"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.Resources> <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> <esri:SimpleRenderer x:Key="MySimplePointRenderer"> <esri:SimpleRenderer.Symbol> <esri:SimpleMarkerSymbol Color="#99FF0000"/> </esri:SimpleRenderer.Symbol> </esri:SimpleRenderer> </Grid.Resources> <esri:Map x:Name="MyMap" WrapAround="True" Extent="-15000000,2000000,-7000000,8000000" Background="#FFE3E3E3" MinimumResolution="2445.98490512499"> <esri:ArcGISLocalTiledLayer ID="TopoMapLayer" Path="..\\Data\\TPKs\\Topographic.tpk"/> <esri:ArcGISLocalFeatureLayer ID="ArcGISLocalFeatureLayer" Path="..\\Data\\MPKS\\USCitiesStates.mpk" LayerName="Cities" OutFields="*" Renderer="{StaticResource MySimplePointRenderer}"></esri:ArcGISLocalFeatureLayer> </esri:Map> <ProgressBar x:Name="MyProgressBar" IsIndeterminate="True" VerticalAlignment="Bottom" Width="200" Height="20" Margin="10" Visibility="{Binding Path=IsBusy, Converter={StaticResource BooleanToVisibilityConverter}}"></ProgressBar> </Grid> </UserControl>
5/16/2014