Query with a Buffer sample

Discussion created by aafgilbert01 on Sep 7, 2012
Latest reply on Sep 10, 2012 by aafgilbert01

I have looked at the "Query with a Buffer" example in the "ArcGIS Runtime SDK for WPF Samples". I see from the sample that the query result is done on the "states" sub layer. However, the "USCitiesStates.mpk" map package contains "cities", "states" and "highways" and I do not see in the code where the "states" layer is specified to have a query results for "states".

I am interested to understand because I want to be able with my map user control to dynamically set the list of layers available for selection. The similar feature exist in ArcMap.