HI,I have a FeatureLayer <esri:Map x:Name="MyMap" >
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:FeatureLayer ID="MyFeatureLayer2"
Url="http://192.168.1.52/ArcGIS/rest/services/RMS_BOUNDARIES/MapServer/1"
Where="DISTRICT_ID = 5" >
</esri:FeatureLayer>
</esri:Map>
here the map shows the District whos ID is 5..but when I bind this featureLayer to esriToolkitPrimitives<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ListBox Margin="0" IsHitTestVisible="False" BorderThickness="0"
ItemsSource="{Binding ElementName=MyMap, Path=Layers.[MyFeatureLayer2].LayerInfo.Renderer.Infos}"
Grid.Row="1">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<esriToolkitPrimitives:SymbolDisplay
Symbol="{Binding Symbol}"
Width="20" Height="20"
VerticalAlignment="Center" />
<TextBlock Text="{Binding Label}"
FontSize="10"
VerticalAlignment="Center"
Margin="5,0,0,0" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</ScrollViewer>
The listbox still shows all the layers in it..I want to only show the Item whose Id is 5how do i achieve this