<?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 Position on Screen in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1389766#M11182</link>
    <description>&lt;P&gt;I also came across this problem and I just want to add that it can be done in XAML.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;controls:ProWindow
    SaveWindowPosition="False"
&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 22:34:06 GMT</pubDate>
    <dc:creator>RejeanLabbe</dc:creator>
    <dc:date>2024-03-01T22:34:06Z</dc:date>
    <item>
      <title>ProWindow Position on Screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1288890#M9811</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am having&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;extreme&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;difficulties getting a ProWindow to display where I want it to.&amp;nbsp; It doesn't matter how I define the window (either in XAML or programmatically), the window always displays in the same location that it was last located when it last closed.&amp;nbsp; I can set the WindowStartupLocation to "CenterOwner" with the Owner set to the Application.Current.MainWindow, which should open the window in the center of the Pro application.&amp;nbsp; However, that doesn't work.&amp;nbsp; I can also set the owner to be the center of another window and that doesn't work.&amp;nbsp; Additionally, just for testing purposes, I can set the WindowStartupLocation to "Manual" and define a top and left for the window, but that doesn't work.&amp;nbsp; It doesn't matter what I do, the result is always the same.&amp;nbsp; The window just opens in the last location that it was closed.&amp;nbsp; This is clearly a problem.&amp;nbsp; As an fyi, I am developing with the C# SDK for ArcGIS Pro in 3.1.1.&amp;nbsp; Does anyone have any idea what could be causing this problem?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 19:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1288890#M9811</guid>
      <dc:creator>DaveLewis73</dc:creator>
      <dc:date>2023-05-13T19:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Position on Screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1289239#M9820</link>
      <description>&lt;P&gt;Hi Dave, can u try:&lt;/P&gt;&lt;P&gt;_proWindow.SaveWindowPosition = false;//override last position of the window&amp;nbsp;&lt;/P&gt;&lt;P&gt;we will make sure this gets added to the Pro SDK documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 17:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1289239#M9820</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-05-15T17:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Position on Screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1289311#M9823</link>
      <description>&lt;P&gt;Charlie,&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp; That works perfectly and was just what I needed.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 19:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1289311#M9823</guid>
      <dc:creator>DaveLewis73</dc:creator>
      <dc:date>2023-05-15T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Position on Screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1290874#M9829</link>
      <description>&lt;P&gt;Just for others looking for the complete snippet that will allow to manually position the popup window (works for both Show() and ShowDialog()):&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
{
  //already open?
  if (_prowindow != null)
    return;

  // set a fixed offset for the Window on the top/left

  double left = 250; //Window's left edge, in relation to the desktop
  double top = 150; //Window's top edge, in relation to the desktop

  _prowindow = new ProWindow();
  _prowindow.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual; 
  _prowindow.Left = left;
  _prowindow.Top = top;
  _prowindow.SaveWindowPosition = false;
  _prowindow.Owner = FrameworkApplication.Current.MainWindow;
  _prowindow.Closed += (o, e) =&amp;gt; { _prowindow = null; };
  //_prowindow.Show();
  //uncomment for modal
  _prowindow.ShowDialog();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 22:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1290874#M9829</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-18T22:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow Position on Screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1389766#M11182</link>
      <description>&lt;P&gt;I also came across this problem and I just want to add that it can be done in XAML.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;controls:ProWindow
    SaveWindowPosition="False"
&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 22:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-screen/m-p/1389766#M11182</guid>
      <dc:creator>RejeanLabbe</dc:creator>
      <dc:date>2024-03-01T22:34:06Z</dc:date>
    </item>
  </channel>
</rss>

