<?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 set the initialPath attribute to feed the SelectFolder method of the BrowseForFolder class? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856447#M4526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to provide my clients with the possibility to select a GDB from within a DockPaneView.&lt;/P&gt;&lt;P&gt;Now that I found out on how to get the parentWindow to satisfy the SelectFolder method I have to realize I cannot set the initialPath attribute. The method expects a string but writing "c:\\" still opens the dialog in the users home directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that I should be able to set the path to a sub-directory of the users home directory by writing e.g. "~/Documents".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing off this works. I always start in the users home directory. But what I want is the possibility for the user to store the selected path in my solution as a resource variable and next time the SelectFolder dialog is opened the resource variable should retrieve the initial path from the resource file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has somebody a working example on how to set the initialPath attribute?&lt;/P&gt;&lt;P&gt;As said, the functionality is required to work from within a DockPaneView (WPF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2018 12:37:36 GMT</pubDate>
    <dc:creator>TomGeo</dc:creator>
    <dc:date>2018-11-12T12:37:36Z</dc:date>
    <item>
      <title>How to set the initialPath attribute to feed the SelectFolder method of the BrowseForFolder class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856447#M4526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to provide my clients with the possibility to select a GDB from within a DockPaneView.&lt;/P&gt;&lt;P&gt;Now that I found out on how to get the parentWindow to satisfy the SelectFolder method I have to realize I cannot set the initialPath attribute. The method expects a string but writing "c:\\" still opens the dialog in the users home directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that I should be able to set the path to a sub-directory of the users home directory by writing e.g. "~/Documents".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing off this works. I always start in the users home directory. But what I want is the possibility for the user to store the selected path in my solution as a resource variable and next time the SelectFolder dialog is opened the resource variable should retrieve the initial path from the resource file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has somebody a working example on how to set the initialPath attribute?&lt;/P&gt;&lt;P&gt;As said, the functionality is required to work from within a DockPaneView (WPF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 12:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856447#M4526</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2018-11-12T12:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the initialPath attribute to feed the SelectFolder method of the BrowseForFolder class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856448#M4527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;Have you tried like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; OpenItemDialog searchGdbDialog = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; OpenItemDialog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Title = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"Find GDB"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;InitialLocation = Directory.GetCurrentDirectory(),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;MultiSelect = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Filter = ItemFilters.featureDatasets_all&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; ok = searchGdbDialog.ShowDialog();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;For me it works, I always get last visited folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 12:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856448#M4527</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2018-11-12T12:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the initialPath attribute to feed the SelectFolder method of the BrowseForFolder class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856449#M4528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gintautas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really like your solution to the problem. Using OpenItemDialog works in setting the directory and I am pretty sure I can also use it in combination with the resources. A bit of a disadvantage compared to the systems dialog is the indexing of the catalog when the dialog is opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing me this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 15:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-the-initialpath-attribute-to-feed-the/m-p/856449#M4528</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2018-11-12T15:21:21Z</dc:date>
    </item>
  </channel>
</rss>

