I have an infowindow defined with a datatemplate. I want to perform an identify task and display the result in the infowindow. My code works to popup the infowindow but it comes up empty. How do I make the assignment to get the data into the infowindow? Also, in the definition of the identify task, is there a way to specify the single layer we want the results to come from?ThanksHere is my current code.private void IdentifyTask_ExecuteCompleted(object sender, IdentifyEventArgs args)
{
if (args.IdentifyResults != null && args.IdentifyResults.Count > 0)
{
// MessageBox.Show(args.IdentifyResults.Count.ToString());
MyInfoWindow.Anchor = clickPoint;
MyInfoWindow.IsOpen = true;
MyInfoWindow.Content = args.IdentifyResults;
}
else
{
MyInfoWindow.IsOpen = false;
}
}