<?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: ProWindow Control Basics Help in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190036#M8339</link>
    <description>&lt;P&gt;A lot of what I've learned about WPF has been through other sources. My first stop was &lt;A href="https://wpf-tutorial.com/about-wpf/what-is-wpf/" target="_self"&gt;here&lt;/A&gt;, which gives a very basic understand of how to work with it in general. Once I determined that I needed a modal window for this particular operation, I searched more on Google for information about ProWindows than the SDK documentation&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 19:13:04 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-07-06T19:13:04Z</dc:date>
    <item>
      <title>ProWindow Control Basics Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190007#M8336</link>
      <description>&lt;P&gt;I am in the process of converting an Add-In from VB ArcObjects to an ArcGIS Pro Add-In written in C#.&amp;nbsp; The original Add-In was designed using Windows Forms as modal Dialogs.&amp;nbsp; The documentation for the Event Model and Properties of Windows Forms was easy to understand and implement for the adding and using controls on the form.&lt;/P&gt;&lt;P&gt;The ProWindow UI template appears to be the closest equivalent to a Windows Form for the ArcGIS Pro Add-In.&amp;nbsp; I have created a project with a ProWindow and added WPF controls that replicate my original Windows Form dialog, but I I don't know anything about what to do after that.&amp;nbsp; The Microsoft documentation examples for WPF are causing errors and I don't understand how to connect the dots.&lt;/P&gt;&lt;P&gt;For example, how do I add a button to a ProWindow and handle the button Click event to open a MessageBox saying the button was clicked as the stub code that I can eventually replace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 18:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190007#M8336</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2022-07-06T18:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Control Basics Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190016#M8337</link>
      <description>&lt;P&gt;Here's how I have my ProWindow coded. I have several button that have their Click method in the xaml.cs file. First, I dragged a Button from the Common WPF Controls Toolbox onto the Window to create a Cancel button, which will just close the window&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wpf1.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45339iFCB68B619048B6FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wpf1.png" alt="wpf1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I modified the code in the .xaml file to format it and to add in some properties and events. Simply by typing in Click, Visual Studios offers to create the stub code&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;&amp;lt;Button x:Name="Cancel" Margin="10,10,0,5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
        Click="Cancel_Click"
        &amp;gt;
  &amp;lt;TextBlock Margin="5,0"&amp;gt;Cancel&amp;lt;/TextBlock&amp;gt;
&amp;lt;/Button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In the xaml.cs file, I have this code to close the window&lt;/P&gt;&lt;LI-CODE lang="css"&gt;    private void Cancel_Click(object sender, RoutedEventArgs e)
    {
      DialogResult = false;
      this.Close();
    }&lt;/LI-CODE&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 18:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190016#M8337</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-07-06T18:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Control Basics Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190027#M8338</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; That is what I was looking for.&amp;nbsp; Is this in the Documentation somewhere?&amp;nbsp; Even if it is, I like having fundamental coding techniques like this posted in the community, since Google does a much better jobs of listing posts in response to searches than it does pages from the SDK documentation.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 18:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190027#M8338</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2022-07-06T18:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Control Basics Help</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190036#M8339</link>
      <description>&lt;P&gt;A lot of what I've learned about WPF has been through other sources. My first stop was &lt;A href="https://wpf-tutorial.com/about-wpf/what-is-wpf/" target="_self"&gt;here&lt;/A&gt;, which gives a very basic understand of how to work with it in general. Once I determined that I needed a modal window for this particular operation, I searched more on Google for information about ProWindows than the SDK documentation&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 19:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-control-basics-help/m-p/1190036#M8339</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-07-06T19:13:04Z</dc:date>
    </item>
  </channel>
</rss>

