<?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 How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1503614#M11843</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;I am trying to Drag a &lt;STRONG&gt;feature class&lt;/STRONG&gt; from the &lt;STRONG&gt;Catalog pane&lt;/STRONG&gt; and trying to drop into a combo box using drag and drop functionality. However, I tried tweaking the sample&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#dropping-on-a-pane" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#dropping-on-a-pane&lt;/A&gt;&amp;nbsp; for my goal but I didn't helped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to&lt;STRONG&gt; get the path of the feature class&lt;/STRONG&gt;. but I don't know how I can proceed further to populate it as feature class. I have attached the screenshot of my goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; else if (dropInfo.Data is List&amp;lt;ClipboardItem&amp;gt; clipboardItems)
 {
     // in this example, we handle just the first item if there are multiples being dragged
     var catalogItem = clipboardItems.First();
     string url = catalogItem.CatalogPath;
     Uri uri = new Uri(url);
    
     // SelectedFeatureLayer = catalogItem.CatalogPath.ToString();
     {
         dropInfo.Handled = false;
         //ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show($"Drag and drop only from the TOC here");
         return;
     }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for your suggestion.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MY GOAL" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109331iCEB3F1EBFDD92F12/image-size/large?v=v2&amp;amp;px=999" role="button" title="DD catalog.png" alt="MY GOAL" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;MY GOAL&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (13).png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109332iDBB2092FC64FD88B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (13).png" alt="Screenshot (13).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 15:13:18 GMT</pubDate>
    <dc:creator>AbhijeetNandeshwar1</dc:creator>
    <dc:date>2024-07-10T15:13:18Z</dc:date>
    <item>
      <title>How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1503614#M11843</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;I am trying to Drag a &lt;STRONG&gt;feature class&lt;/STRONG&gt; from the &lt;STRONG&gt;Catalog pane&lt;/STRONG&gt; and trying to drop into a combo box using drag and drop functionality. However, I tried tweaking the sample&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#dropping-on-a-pane" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#dropping-on-a-pane&lt;/A&gt;&amp;nbsp; for my goal but I didn't helped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to&lt;STRONG&gt; get the path of the feature class&lt;/STRONG&gt;. but I don't know how I can proceed further to populate it as feature class. I have attached the screenshot of my goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; else if (dropInfo.Data is List&amp;lt;ClipboardItem&amp;gt; clipboardItems)
 {
     // in this example, we handle just the first item if there are multiples being dragged
     var catalogItem = clipboardItems.First();
     string url = catalogItem.CatalogPath;
     Uri uri = new Uri(url);
    
     // SelectedFeatureLayer = catalogItem.CatalogPath.ToString();
     {
         dropInfo.Handled = false;
         //ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show($"Drag and drop only from the TOC here");
         return;
     }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for your suggestion.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MY GOAL" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109331iCEB3F1EBFDD92F12/image-size/large?v=v2&amp;amp;px=999" role="button" title="DD catalog.png" alt="MY GOAL" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;MY GOAL&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (13).png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109332iDBB2092FC64FD88B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (13).png" alt="Screenshot (13).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 15:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1503614#M11843</guid>
      <dc:creator>AbhijeetNandeshwar1</dc:creator>
      <dc:date>2024-07-10T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1503672#M11847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/750572"&gt;@AbhijeetNandeshwar1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample attached. Search for TODO to see the specific items for the drag/drop implementation.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 17:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1503672#M11847</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-11T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1504354#M11856</link>
      <description>&lt;P&gt;Note: The attachment above had a version of 3.4 in the config.daml.&amp;nbsp; I have update the sample attachment now with version 3.3&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 17:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1504354#M11856</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-11T17:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1504398#M11857</link>
      <description>&lt;P&gt;Thank you for your help &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;. But I converted it 3.3 to test the application.&amp;nbsp;I have created a small video that demonstrates my goal. Please go through it. I apologize if I was not able to clarify my workflow.&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6357641381112w920h540r520" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6357641381112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6357641381112w920h540r520');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6357641381112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My goal is to populate the feature class into the combo box. The sample you sent is giving me the path of the feature class.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let me frame the questions, How can I convert the URL to feature layer or feature class? However I tried converting the URL to feature layer. It's forcing me to add the layer to active map which I don't want to.&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;      &lt;SPAN&gt;string&lt;/SPAN&gt; url = &lt;SPAN&gt;@"c:\data\project.gdb\roads"&lt;/SPAN&gt;;  &lt;SPAN&gt;//FeatureClass of a FileGeodatabase&lt;/SPAN&gt;
      Uri uri = &lt;SPAN&gt;new&lt;/SPAN&gt; Uri(url);
      &lt;SPAN&gt;await&lt;/SPAN&gt; QueuedTask.Run(() =&amp;gt; LayerFactory.Instance.CreateLayer(uri, MapView.Active.Map));&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Please let me know if I can help you in any way.&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Abhijeet&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 16:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1504398#M11857</guid>
      <dc:creator>AbhijeetNandeshwar1</dc:creator>
      <dc:date>2024-07-12T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1504890#M11863</link>
      <description>&lt;P&gt;Check out the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase" target="_self"&gt;ProSnippet: Geodatabase wiki&lt;/A&gt;. It has some good info on how to work with accessing the feature classes from the underlying Geodatabase - given the URL that you already have.&lt;/P&gt;&lt;P&gt;Please reach out if you get stuck.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 16:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1504890#M11863</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-12T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to drag a feature class from catalog pane into Combo Box using Drag and Drop functionality?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1508319#M11899</link>
      <description>&lt;P&gt;If you drag an 'Item' from the Catalog pane (specifically a Geodatabase item) you will have a Feature Class or a Table.&amp;nbsp; Feature Layers are part of the map, so you can't have a feature layer without adding a feature class to the map first.&amp;nbsp; However, you can perform operations on Feature Classes as well as Tables.&amp;nbsp; &amp;nbsp;I attached a drag/drop sample the takes a dropped feature class (point) or table and displays it's content.&amp;nbsp; The sample requires 3.3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dragging a Point feature class" style="width: 893px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/110303i5193C4C4693F5C25/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen1.png" alt="Dragging a Point feature class" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Dragging a Point feature class&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Showing the dropped content" style="width: 813px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/110304i4411DC1C7F92697A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen3.png" alt="Showing the dropped content" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Showing the dropped content&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 22:36:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-drag-a-feature-class-from-catalog-pane-into/m-p/1508319#M11899</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2024-07-22T22:36:40Z</dc:date>
    </item>
  </channel>
</rss>

