I know this subject has been beat to death and you can't zoom to a point like you do a line or poly but I'm having trouble.So if I'm suppose to use this:
Map.ZoomToResolution(Map.Resolution / 2, pointToZoomTo);
And Currently have this from the SDK
if (featureSet != null && featureSet.Features.Count > 0)
foreach (Graphic feature in featureSet.Features)
{
// Hightlight selected feature
feature.Symbol = LayoutRoot.Resources["ResultsMarkerSymbol"] as SimpleMarkerSymbol;
AGraphicslayer.Graphics.Insert(0, feature);
// Zoom to selected feature (define expand percentage)
ESRI.ArcGIS.Client.Geometry.Envelope selectedFeatureExtent = feature.Geometry.Extent;
double expandPercentage = 30;
double widthExpand = selectedFeatureExtent.Width * (expandPercentage / 100);
double heightExpand = selectedFeatureExtent.Height * (expandPercentage / 100);
ESRI.ArcGIS.Client.Geometry.Envelope displayExtent = new ESRI.ArcGIS.Client.Geometry.Envelope(
selectedFeatureExtent.XMin - (widthExpand / 2),
selectedFeatureExtent.YMin - (heightExpand / 2),
selectedFeatureExtent.XMax + (widthExpand / 2),
selectedFeatureExtent.YMax + (heightExpand / 2));
Map.ZoomTo(displayExtent);
What do I need to change the "pointToZoomTo" parameter to, I've tried AGraphicslayer and featureSet but I'm just unsure and nothing is working Map.ZoomToResolution(Map.Resolution / 2, pointToZoomTo);ThanksNathalie