private void FeatureLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
// show the attribute page for the first of the graphics returned
FeatureInfoPage.IsOpen = true;
ApplicationBar.IsVisible = false;
FeatureInfoPage.DataContext = e.Graphic;
// select the type and confirm values in the ListBoxes to match the graphic's attributes
var facilityMatches = facilityFieldDomain.CodedValues.Where(a => a.Key.Equals(e.Graphic.Attributes["facility"]));
if (facilityMatches.Any())
FacilityChoicesListBox.SelectedItem = facilityMatches.First();
var qualityMatches = qualityFieldDomain.CodedValues.Where(a => a.Key.Equals(e.Graphic.Attributes["quality"]));
if (qualityMatches.Any())
QualityChoicesListBox.SelectedItem = qualityMatches.First();
}