<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to retrieve a graphic that contains a drawing point in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361109#M9308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about using FindGraphicsInHostCoordinates? You can look at the MouseClick event handler in this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 16:28:54 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-12-20T16:28:54Z</dc:date>
    <item>
      <title>how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361105#M9304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I have a drawing "point" icon for my map.&amp;nbsp; When I click on a region in US, I want to highlight that region.&amp;nbsp; I can get the highlight done.&amp;nbsp; When clicking on a region, I don't want to run the query task again to get the region that contains the point.&amp;nbsp; So, my design is I go thru the existing graphic list and find the region that "intersects" with that point, then do the highlight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (graphic.Geometry.Extent.Intersects(e.Geometry.Extent))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Select();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e is DrawEventArgs.&amp;nbsp; graphic is from graphic layer on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I got a problem that sometimes 2 regions contain that point and the result is both of them are selected.&amp;nbsp; Please see the attached image, my clicking point is at the crossed symbol x. When I click at that point, both regions A and B are selected while I only want region B is selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to fix this?&amp;nbsp; Looks like to me graphic geometry is a rectangle and that causes the point to be inside both regions in the image?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 18:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361105#M9304</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-12-17T18:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361106#M9305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My scenario:&lt;BR /&gt;- I have a drawing "point" icon for my map.&amp;nbsp; When I click on a region in US, I want to highlight that region.&amp;nbsp; I can get the highlight done.&amp;nbsp; When clicking on a region, I don't want to run the query task again to get the region that contains the point.&amp;nbsp; So, my design is I go thru the existing graphic list and find the region that "intersects" with that point, then do the highlight.&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;if (graphic.Geometry.Extent.Intersects(e.Geometry.Extent))&lt;BR /&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Select();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;e is DrawEventArgs.&amp;nbsp; graphic is from graphic layer on the map.&lt;BR /&gt;&lt;BR /&gt;However, I got a problem that sometimes 2 regions contain that point and the result is both of them are selected.&amp;nbsp; Please see the attached image, my clicking point is at the crossed symbol x. When I click at that point, both regions A and B are selected while I only want region B is selected.&lt;BR /&gt;Is there a way to fix this?&amp;nbsp; Looks like to me graphic geometry is a rectangle and that causes the point to be inside both regions in the image?&lt;BR /&gt;&lt;BR /&gt;I appreciate your help!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Attach the image.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 18:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361106#M9305</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-12-17T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361107#M9306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try this SDK sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;SPAN&gt;. It uses QueryTask based on the geometry (i.e. MapPoint if DrawMode is Point). You can modify this sample, you will not need a Draw object. You can obtain MapPoint through any of the mouse events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; 
System.Windows.Point screenPoint = args.GetPosition(MyMap);
ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = MyMap.ScreenToMap(screenPoint);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361107#M9306</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T16:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361108#M9307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can try this SDK sample &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;. It uses QueryTask based on the geometry (i.e. MapPoint if DrawMode is Point). You can modify this sample, you will not need a Draw object. You can obtain MapPoint through any of the mouse events.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; 
System.Windows.Point screenPoint = args.GetPosition(MyMap);
ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = MyMap.ScreenToMap(screenPoint);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, I didn't want to run QueryTask again.&amp;nbsp; I had looked at that spatial query before posting this question.&amp;nbsp; I just want to use the exisitng graphics that I already query earlier and look for the one that contains the point.&amp;nbsp; Looks like there is no way to get the right graphic WITHOUT running QueryTask?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361108#M9307</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-11T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361109#M9308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about using FindGraphicsInHostCoordinates? You can look at the MouseClick event handler in this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 16:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361109#M9308</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-20T16:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361110#M9309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do the following in the MouseClick event of your Map control to get the graphics that intersect your MapPoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Assumptions in the code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- MyMap: The Map control in your application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- MyFeatureLayer: The FeatureLayer in your map you are intersecting the map point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- MyGraphicsLayer: The layer to show the intersecting result(s)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; featureLayer = MyMap.Layers[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"MyFeatureLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;;&lt;/SPAN&gt;
 
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;System.Windows.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; screenPnt = MyMap.MapToScreen(e.MapPoint);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GeneralTransform&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; generalTransform = MyMap.TransformToVisual(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Application&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;.Current.RootVisual);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;System.Windows.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; transformScreenPnt = generalTransform.Transform(screenPnt);&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;IEnumerable&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;gt; results = featureLayer.FindGraphicsInHostCoordinates(transformScreenPnt);&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; graphicsLayer = MyMap.Layers[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"MyGraphicsLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;;&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; graphic &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; results)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;{&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; g = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;() { Geometry = graphic.Geometry };&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;graphicsLayer.Graphics.Add(g);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;}&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361110#M9309</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2021-12-11T16:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361111#M9310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can do the following in the MouseClick event of your Map control to get the graphics that intersect your MapPoint.&lt;BR /&gt; &lt;BR /&gt;Assumptions in the code snippet:&lt;BR /&gt;- MyMap: The Map control in your application&lt;BR /&gt;- MyFeatureLayer: The FeatureLayer in your map you are intersecting the map point&lt;BR /&gt;- MyGraphicsLayer: The layer to show the intersecting result(s)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; featureLayer = MyMap.Layers[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"MyFeatureLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;;&lt;/SPAN&gt;
 
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;System.Windows.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; screenPnt = MyMap.MapToScreen(e.MapPoint);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GeneralTransform&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; generalTransform = MyMap.TransformToVisual(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Application&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;.Current.RootVisual);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;System.Windows.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; transformScreenPnt = generalTransform.Transform(screenPnt);&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;IEnumerable&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;gt; results = featureLayer.FindGraphicsInHostCoordinates(transformScreenPnt);&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; graphicsLayer = MyMap.Layers[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"MyGraphicsLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;;&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; graphic &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; results)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;{&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; g = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;() { Geometry = graphic.Geometry };&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;graphicsLayer.Graphics.Add(g);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;}&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jennifer and Ali! Looks like that can resolve my problem, but I cannot test it because I cannot find the property RootVisual from Application.Current.&amp;nbsp; I tried Application.Current.MainWindow but that is null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361111#M9310</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-11T16:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361112#M9311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using WPF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
GeneralTransform generalTransform = MyMap.TransformToVisual(Application.Current.MainWindow);
System.Windows.Point transformScreenPnt = generalTransform.Transform(screenPnt);

IEnumerable&amp;lt;Graphic&amp;gt; selected =
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcelGraphicsLayer.FindGraphicsInHostCoordinates(transformScreenPnt);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:22:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361112#M9311</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T16:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361113#M9312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; If you are using WPF:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
GeneralTransform generalTransform = MyMap.TransformToVisual(&lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;Application.Current.MainWindow)&lt;/SPAN&gt;;
System.Windows.Point transformScreenPnt = generalTransform.Transform(screenPnt);

IEnumerable&amp;lt;Graphic&amp;gt; selected =
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcelGraphicsLayer.FindGraphicsInHostCoordinates(transformScreenPnt);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used MainWindow, but it always returned me null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361113#M9312</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-11T16:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361114#M9313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I used MainWindow, but it always returned me null.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out why it is always null for my case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question. My xaml has something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;UserControl&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;UserControl.Resources/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Grid&amp;gt;my map is in here&amp;lt;/Grid&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/UserControl&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Is that true that the MainWindow would be the Grid element in my xaml?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 11:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361114#M9313</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2010-12-22T11:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361115#M9314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The main window won't be the grid inside your control. It could be the control itself if it's used as main window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 12:37:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361115#M9314</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-12-23T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361116#M9315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can do the following in the MouseClick event of your Map control to get the graphics that intersect your MapPoint.&lt;BR /&gt; &lt;BR /&gt;Assumptions in the code snippet:&lt;BR /&gt;- MyMap: The Map control in your application&lt;BR /&gt;- MyFeatureLayer: The FeatureLayer in your map you are intersecting the map point&lt;BR /&gt;- MyGraphicsLayer: The layer to show the intersecting result(s)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; featureLayer = MyMap.Layers[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"MyFeatureLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;;&lt;/SPAN&gt;
 
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;System.Windows.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; screenPnt = MyMap.MapToScreen(e.MapPoint);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GeneralTransform&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; generalTransform = MyMap.TransformToVisual(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Application&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;.Current.RootVisual);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;System.Windows.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; transformScreenPnt = generalTransform.Transform(screenPnt);&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;IEnumerable&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;gt; results = featureLayer.FindGraphicsInHostCoordinates(transformScreenPnt);&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; graphicsLayer = MyMap.Layers[&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"MyGraphicsLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;GraphicsLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;;&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; graphic &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; results)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;{&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt; g = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;() { Geometry = graphic.Geometry };&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;graphicsLayer.Graphics.Add(g);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;}&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just back to this.&amp;nbsp; I don't have e.MapPoint but having DrawEventArgs e which can give me Geometry.&amp;nbsp; How do I create a MapPoint or Point using Geometry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following but looks like it's not correct because FindGraphicsInHostCoordinates() does not return me graphics sometimes.&amp;nbsp; I'm using this method from graphic layer, not feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Windows.Point screenPnt = MainMap.MapToScreen(new MapPoint(e.Geometry.Extent.XMax,e.Geometry.Extent.YMax));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361116#M9315</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-11T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361117#M9316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use Intersects() method &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope~Intersects.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope~Intersects.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this, where args.Geometry is the MapPoint created by Draw. This code-snippet allows me to select all graphics that contain the MapPoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
foreach (var g in graphicsLayer.Graphics)
{
 if (g.Geometry.Extent.Intersects(args.Geometry.Extent))
&amp;nbsp; g.Selected = true;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361117#M9316</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T16:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361118#M9317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use Intersects() method &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope~Intersects.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Envelope~Intersects.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Something like this, where args.Geometry is the MapPoint created by Draw. This code-snippet allows me to select all graphics that contain the MapPoint.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
foreach (var g in graphicsLayer.Graphics)
{
 if (g.Geometry.Extent.Intersects(args.Geometry.Extent))
&amp;nbsp; g.Selected = true;
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what I'm doing and it is why I posted this question.&amp;nbsp; I had what you had above in my first post in this thread.&amp;nbsp; It does NOT give the right result as stated in my first post :).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361118#M9317</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-11T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361119#M9318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, could you verify that the geometries have the same SpatialReference as the MapPoint? If they are found to be not equal, Intersects() will return false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 15:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361119#M9318</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-01T15:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve a graphic that contains a drawing point</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361120#M9319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Oh, could you verify that the geometries have the same SpatialReference as the MapPoint? If they are found to be not equal, Intersects() will return false.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, they have the same SpatialReference.&amp;nbsp; It's just that the result returned is more than what I draw.&amp;nbsp; You can look at the image I attached in the 2nd post.&amp;nbsp; Intersects() won't work in all cases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 14:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-retrieve-a-graphic-that-contains-a-drawing/m-p/361120#M9319</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2011-03-02T14:15:19Z</dc:date>
    </item>
  </channel>
</rss>

