Hey Ellen,
I'm pretty sure you have to do this in a few steps, simply because a kml layer can contain any number of different geometry types.
Best way to do it would be to create a mapitemcollection using the KmlLayer.Descendants method, which should grab all mapitems in child kml layers as well. Note, all of these items will be KmlNode objects
Then iterate through that list, creating clones of each mapitem that is a graphics type of kml node. (You may want to do overlay as well as graphics nodes)
Note that you will probably have to get the node as a mapitem to actually convert to a note? I'm a little unsure.
ESRI.ArcGISExplorer.Mapping.KmlLayer lyr = new ESRI.ArcGISExplorer.Mapping.KmlLayer
ESRI.ArcGISExplorer.Mapping.MapItemCollection kmlitems = lyr.Descendants
foreach (KmlNode node in kmlitems)
{
if (node.Type == KmlNodeType.Graphics) //if it is we can likely turn it into a note)
{
switch (node.GraphicsType)
{
case kmlGraphicsType.Icon:
//make a point note
break;
case KmlGraphicsType.Path:
//make a line note
break;
case KmlGraphicsType.Polygon:
//make a polygon note
break;
default:
break;
{
}
}
I'm just guessing on the code above, but hopefully it gives you a place to start.
Norm