<?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: ComboBox with predefine string values in dockpane in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650758#M13126</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do it from xaml:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ComboBox Height="23" Name="comboBox1" Width="120"&amp;gt;
    &amp;lt;ComboBoxItem Content="Polygon"/&amp;gt;
    &amp;lt;ComboBoxItem Content="Polyline"/&amp;gt;
    &amp;lt;ComboBoxItem Content="Point"/&amp;gt;
&amp;lt;/ComboBox&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 16 Sep 2025 17:38:36 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-09-16T17:38:36Z</dc:date>
    <item>
      <title>ComboBox with predefine string values in dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650648#M13125</link>
      <description>&lt;P&gt;I am trying to put a ComboBox in my dockpane with pre defined string values (Something like Polygon/Polyline/Point). They never change.&lt;/P&gt;&lt;P&gt;All the examples I found have&amp;nbsp;ObservableCollection with some classes or other complex behavior that I do not need.&lt;/P&gt;&lt;P&gt;My ComboBox is coming out empty.&lt;/P&gt;&lt;P&gt;Anybody have very simple example on how to do it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 14:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650648#M13125</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-09-16T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox with predefine string values in dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650758#M13126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do it from xaml:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ComboBox Height="23" Name="comboBox1" Width="120"&amp;gt;
    &amp;lt;ComboBoxItem Content="Polygon"/&amp;gt;
    &amp;lt;ComboBoxItem Content="Polyline"/&amp;gt;
    &amp;lt;ComboBoxItem Content="Point"/&amp;gt;
&amp;lt;/ComboBox&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Sep 2025 17:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650758#M13126</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-09-16T17:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox with predefine string values in dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650931#M13127</link>
      <description>&lt;P&gt;Already done this.&lt;/P&gt;&lt;P&gt;It does not looks like MVVM - is that the only way?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 04:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650931#M13127</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-09-17T04:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox with predefine string values in dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650932#M13128</link>
      <description>&lt;P&gt;XAML:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;            &amp;lt;ComboBox ItemsSource="{Binding GeometryTypes}" SelectedItem="{Binding SelectedGeometryType, Mode=TwoWay}" Text="Select Option" /&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;ViewModel:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        public List&amp;lt;string&amp;gt; GeometryTypes =&amp;gt; new List&amp;lt;string&amp;gt;() { "Polygon", "Polyline", "Point" };

        public string SelectedGeometryType { get; set; } = "Polygon";&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Sep 2025 05:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1650932#M13128</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-09-17T05:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox with predefine string values in dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1651003#M13129</link>
      <description>&lt;P&gt;After playing a lot (and consult AI) this is my solution&lt;/P&gt;&lt;P&gt;XML&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ComboBox x:Name="types"  DisplayMemberPath="Name"  ItemsSource="{Binding TypesItems}" SelectedItem="{Binding SelectedType, Mode=TwoWay}"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Helper class:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public class MyItemClass
{
    public string Name { get; set; }
}&lt;/LI-CODE&gt;&lt;P&gt;Fill the list&lt;/P&gt;&lt;LI-CODE lang="c"&gt; private ObservableCollection&amp;lt;MyItemClass&amp;gt; _TypesItems;

// fill the list in ctor
           TypesItems = new ObservableCollection&amp;lt;MyItemClass&amp;gt;
       {
           new MyItemClass {  Name = "Item 1" },
           new MyItemClass {  Name = "Item 2" },
           new MyItemClass {  Name = "Item 3" },
       };
 public ObservableCollection&amp;lt;MyItemClass&amp;gt; TypesItems
 {
     get =&amp;gt; _TypesItems;
     set =&amp;gt; SetProperty(ref _TypesItems, value);
 }
&lt;/LI-CODE&gt;&lt;P&gt;and finally get the selected&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;       private MyItemClass _selectedType;
       public MyItemClass SelectedType
       {
           get =&amp;gt; _selectedType;
           set =&amp;gt; SetProperty(ref _selectedType, value);
       }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 13:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1651003#M13129</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-09-17T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox with predefine string values in dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1655837#M13181</link>
      <description>&lt;P&gt;There is a community sample that shows how to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/MVVM-XAML/DockpaneWithComboDropdown" target="_blank"&gt;arcgis-pro-sdk-community-samples/MVVM-XAML/DockpaneWithComboDropdown at master · Esri/arcgis-pro-sdk-community-samples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 14:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/combobox-with-predefine-string-values-in-dockpane/m-p/1655837#M13181</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2025-10-07T14:27:03Z</dc:date>
    </item>
  </channel>
</rss>

