<?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 default select checkbox in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1295245#M9908</link>
    <description>&lt;P&gt;Thanks to both of you!&lt;/P&gt;&lt;P&gt;Set isChecked="true" in config.daml works for me.&lt;/P&gt;&lt;P&gt;Set&amp;nbsp;loadOnClick="false" and Set&amp;nbsp;&lt;SPAN&gt;IsChecked = true in&amp;nbsp;ModuleSAM.Current.IsSimplify works same.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 02:27:28 GMT</pubDate>
    <dc:creator>LSCGIS</dc:creator>
    <dc:date>2023-06-02T02:27:28Z</dc:date>
    <item>
      <title>how to default select checkbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294374#M9891</link>
      <description>&lt;P&gt;I Add a ChekBox using ArcGIS Pro SDK For .NET，how to make it default select。The code below dosn't work. Thanks!&lt;/P&gt;&lt;P&gt;internal class CheckBoxSimplify : ArcGIS.Desktop.Framework.Contracts.CheckBox&lt;BR /&gt;{&lt;BR /&gt;public CheckBoxSimplify()&lt;BR /&gt;{&lt;BR /&gt;IsChecked = true;//do not work&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;protected override void OnClick()&lt;BR /&gt;{&lt;BR /&gt;ModuleSAM.Current.IsSimplify = IsChecked.Value;&lt;BR /&gt;base.OnClick();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294374#M9891</guid>
      <dc:creator>LSCGIS</dc:creator>
      <dc:date>2023-05-31T06:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to default select checkbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294427#M9895</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to check add-in daml file. Your checkbox loadOnClick value must be set to false:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;&amp;lt;checkBox id="RibbonControls_CheckBox1" keytip="XC" caption="CheckBox 1" className="CheckBox1" loadOnClick="false"&amp;gt;
 &amp;lt;tooltip heading="CheckBox1 Tooltip Heading"&amp;gt;
  CheckBox1 Tooltip Heading. 
  &amp;lt;disabledText /&amp;gt; 
  &amp;lt;/tooltip&amp;gt;
  &amp;lt;/checkBox&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And rebuild solution after changes&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 11:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294427#M9895</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-05-31T11:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to default select checkbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294597#M9898</link>
      <description>&lt;P&gt;This worked for me:&amp;nbsp; At startup I see this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1685553224115.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72061i8E03E8F8C7D5E322/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1685553224115.png" alt="Wolf_0-1685553224115.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using this DAML syntax:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;checkBox id="TestTool_Checkbox" caption="Check Here!" 
          isChecked="true" className="CheckBoxSimplify" 
          keytip="C1" &amp;gt;
  &amp;lt;tooltip heading="Check Here!"&amp;gt;
    Test for default being checked&amp;lt;disabledText /&amp;gt;
  &amp;lt;/tooltip&amp;gt;
&amp;lt;/checkBox&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 17:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294597#M9898</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-31T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to default select checkbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294659#M9899</link>
      <description>&lt;P&gt;I have tried with ArcGIS Pro sdk community sample &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/RibbonControls" target="_self"&gt;RibbonControls&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In sample original loadOnClick value is false. If I change it to true it works as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/688887"&gt;@LSCGIS&lt;/a&gt;&amp;nbsp;wrote, because object constructor is not activated until first checkbox click&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 19:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294659#M9899</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-05-31T19:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to default select checkbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294811#M9903</link>
      <description>&lt;P&gt;Understood, in my example i set the attribute&lt;/P&gt;&lt;P&gt;isChecked="true"&lt;/P&gt;&lt;P&gt;in my config.daml definition of the checkBox to true.&amp;nbsp; &amp;nbsp;That initializes my checkBox on the screen to 'Checked' when i start Pro.&amp;nbsp; &amp;nbsp;But you are correct the code-behind doesn't get called until JIT (Just In Time) triggers loading and the execution of the code.&amp;nbsp; &amp;nbsp;So&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/688887"&gt;@LSCGIS&lt;/a&gt;&amp;nbsp; would have to set isChecked to true in the DAML and also initialize&amp;nbsp;&amp;nbsp;ModuleSAM.Current.IsSimplify&amp;nbsp; to 'true' to keep the checkbox and the property in sync.&amp;nbsp; If this the case then the loadOnClick&amp;nbsp; value is irrelevant.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 21:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1294811#M9903</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-31T21:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to default select checkbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1295245#M9908</link>
      <description>&lt;P&gt;Thanks to both of you!&lt;/P&gt;&lt;P&gt;Set isChecked="true" in config.daml works for me.&lt;/P&gt;&lt;P&gt;Set&amp;nbsp;loadOnClick="false" and Set&amp;nbsp;&lt;SPAN&gt;IsChecked = true in&amp;nbsp;ModuleSAM.Current.IsSimplify works same.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 02:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-default-select-checkbox/m-p/1295245#M9908</guid>
      <dc:creator>LSCGIS</dc:creator>
      <dc:date>2023-06-02T02:27:28Z</dc:date>
    </item>
  </channel>
</rss>

