<?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: Select features and change selected features info in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151833#M10804</link>
    <description>&lt;P&gt;would you please tell me which 'usings' exactly needed for your code?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 18:06:22 GMT</pubDate>
    <dc:creator>MehdiHakimi</dc:creator>
    <dc:date>2022-03-08T18:06:22Z</dc:date>
    <item>
      <title>Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151310#M10796</link>
      <description>&lt;P&gt;Hi, I am beginner and need your help. I need c# code to select features (polygons or polylines)&amp;nbsp; by dragging a window in map view and change/update their geometric data (start or end points or radius ,...). Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 15:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151310#M10796</guid>
      <dc:creator>MehdiHakimi</dc:creator>
      <dc:date>2022-03-07T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151335#M10797</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567716"&gt;@MehdiHakimi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here is a helper method that you can use as a reference to help select features from a feature layer.&amp;nbsp; It uses the SketchEditor to draw a rectangle and use that in the selection of the features.&amp;nbsp; Once you have the selected features you can edit them or update their geometries as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;            public static async Task&amp;lt;List&amp;lt;Feature&amp;gt;&amp;gt; SelectFeaturesAsync(MapView mapView, FeatureLayer featureLayer, SelectionMode selectionMode = SelectionMode.New)
            {
                List&amp;lt;Feature&amp;gt; features = new List&amp;lt;Feature&amp;gt;();

                var se = new SketchEditor();
                mapView.SketchEditor = se;
                Geometry envlope = await se.StartAsync(SketchCreationMode.Rectangle, false);

                var query = new QueryParameters();
                query.Geometry = envlope;
                query.SpatialRelationship = SpatialRelationship.Intersects;

                if (selectionMode == SelectionMode.New)
                    featureLayer.ClearSelection();

                var results = await featureLayer.SelectFeaturesAsync(query, selectionMode);

                foreach (var result in results)
                    features.Add(result);

                return features;
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151335#M10797</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2022-03-07T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151342#M10798</link>
      <description>&lt;P&gt;Thank you So much,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MehdiHakimi_0-1646672507314.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35766i8588061FB4F1D681/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MehdiHakimi_0-1646672507314.png" alt="MehdiHakimi_0-1646672507314.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Need load something to fix this errors?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 17:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151342#M10798</guid>
      <dc:creator>MehdiHakimi</dc:creator>
      <dc:date>2022-03-07T17:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151500#M10800</link>
      <description>&lt;P&gt;You will just need add the proper "using" statements, for example the SketchEditor would need "using Esri.ArcGISRuntime.UI;", QueryParameters would need "using Esri.ArcGISRuntime.Data" and so on.&lt;/P&gt;&lt;P&gt;You should be able to find this info from the Doc references at:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/index.html" target="_blank"&gt;ArcGIS Runtime Library Reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 21:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151500#M10800</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2022-03-07T21:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151549#M10802</link>
      <description>&lt;P&gt;Thank you. I added them but i have still this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MehdiHakimi_0-1646697554696.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35804i751D214E619648B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MehdiHakimi_0-1646697554696.png" alt="MehdiHakimi_0-1646697554696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 23:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151549#M10802</guid>
      <dc:creator>MehdiHakimi</dc:creator>
      <dc:date>2022-03-07T23:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151814#M10803</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567716"&gt;@MehdiHakimi&lt;/a&gt;&amp;nbsp;, it looks like you are using the ArcGIS Desktop API (mapping) instead of runtime&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TonyWakim_0-1646759672541.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35868iF8415B103E95F91D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TonyWakim_0-1646759672541.png" alt="TonyWakim_0-1646759672541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you using a blend of desktop and runtime api in your application?&amp;nbsp; If not you can simply comment out the first using line.&amp;nbsp; If you are for some reason, you can try qualifying your class names by their full namespace name.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 17:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151814#M10803</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2022-03-08T17:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151833#M10804</link>
      <description>&lt;P&gt;would you please tell me which 'usings' exactly needed for your code?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 18:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1151833#M10804</guid>
      <dc:creator>MehdiHakimi</dc:creator>
      <dc:date>2022-03-08T18:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select features and change selected features info</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1152040#M10805</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567716"&gt;@MehdiHakimi&lt;/a&gt;&amp;nbsp;The ones needed would be:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;using Esri.ArcGISRuntime.UI;
using Esri.ArcGISRuntime.Data;
using Esri.ArcGISRuntime.Mapping;
using Esri.ArcGISRuntime.Geometry;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your code just make sure that the mapView is an instance of"Esri.ArcGISRuntime.UI.Controls.MapView"&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 07:14:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/select-features-and-change-selected-features-info/m-p/1152040#M10805</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2022-03-09T07:14:49Z</dc:date>
    </item>
  </channel>
</rss>

