<?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 the screen in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1162992#M8019</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to handle loaded event in WPF here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/how-to-handle-a-loaded-event?view=netframeworkdesktop-4.8" target="_self"&gt;https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/how-to-handle-a-loaded-event?view=netframeworkdesktop-4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set ProWindow position in xaml or in code. ProWIndow is derived from Window.&lt;/P&gt;&lt;P&gt;In xaml you can use&amp;nbsp;WindowStartupLocation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;controls:ProWindow x:Class="YourWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
        mc:Ignorable="d"
        Title="Window name" MinWidth="550"
        WindowStartupLocation="CenterOwner"
                    d:DataContext="{Binding Path=vm.YourWindowViewModel}"
                    SizeToContent="Height" Width="550"
    &amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has few alternatives. More info here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.window.windowstartuplocation?view=netframework-4.8" target="_self"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.windows.window.windowstartuplocation?view=netframework-4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In code you can do like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    var window = new YourProWindow();
    window.Left = 100;
    window.Top = 100;
    window.ShowDialog();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 12:37:11 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-04-11T12:37:11Z</dc:date>
    <item>
      <title>ProWindow position on the screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1162936#M8016</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have a simple question. When you create a ProWindow, is it possible to set its snapshot to load on click? Rather, maybe some position setting on the screen.&lt;/P&gt;&lt;P&gt;Thank you for answer&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 05:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1162936#M8016</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-04-11T05:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow position on the screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1162992#M8019</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to handle loaded event in WPF here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/how-to-handle-a-loaded-event?view=netframeworkdesktop-4.8" target="_self"&gt;https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/how-to-handle-a-loaded-event?view=netframeworkdesktop-4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set ProWindow position in xaml or in code. ProWIndow is derived from Window.&lt;/P&gt;&lt;P&gt;In xaml you can use&amp;nbsp;WindowStartupLocation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;controls:ProWindow x:Class="YourWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
        mc:Ignorable="d"
        Title="Window name" MinWidth="550"
        WindowStartupLocation="CenterOwner"
                    d:DataContext="{Binding Path=vm.YourWindowViewModel}"
                    SizeToContent="Height" Width="550"
    &amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has few alternatives. More info here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.window.windowstartuplocation?view=netframework-4.8" target="_self"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.windows.window.windowstartuplocation?view=netframework-4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In code you can do like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    var window = new YourProWindow();
    window.Left = 100;
    window.Top = 100;
    window.ShowDialog();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 12:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1162992#M8019</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-04-11T12:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: ProWindow position on the screen</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1163344#M8027</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 04:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/prowindow-position-on-the-screen/m-p/1163344#M8027</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-04-12T04:07:52Z</dc:date>
    </item>
  </channel>
</rss>

