<?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 can I make the maximize-button invisible in a ProWindow? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496525#M11729</link>
    <description>&lt;P&gt;Forgot, I work with ArcGIS Pro 3.3.0&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 10:04:52 GMT</pubDate>
    <dc:creator>DirkTillmanns</dc:creator>
    <dc:date>2024-06-24T10:04:52Z</dc:date>
    <item>
      <title>How can I make the maximize-button invisible in a ProWindow?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496517#M11728</link>
      <description>&lt;P&gt;I set the intended property &lt;STRONG&gt;ShowMaxRestoreButton&lt;/STRONG&gt; to false (regardless of whether in XAML or constructor). As you can see in the screenshot, ProWindow seems to manipulate this property during the initialization of the dialog. My WindowsStyle is ToolWindow.&amp;nbsp;Maximize shouldn't be displayed even without being explicitly set.&amp;nbsp;Everything works correctly in&amp;nbsp;&lt;STRONG&gt;System.Windows.Window. &lt;/STRONG&gt;ProWindow&amp;nbsp;inherits from this.&lt;/P&gt;&lt;P&gt;Does somebody has any idea?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DirkTillmanns_1-1719222245324.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107750i99D69A9FA551038D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DirkTillmanns_1-1719222245324.png" alt="DirkTillmanns_1-1719222245324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DirkTillmanns_0-1719221897026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107749iDDDD0BBAC2D79A79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DirkTillmanns_0-1719221897026.png" alt="DirkTillmanns_0-1719221897026.png" /&gt;&lt;/span&gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 09:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496517#M11728</guid>
      <dc:creator>DirkTillmanns</dc:creator>
      <dc:date>2024-06-24T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the maximize-button invisible in a ProWindow?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496525#M11729</link>
      <description>&lt;P&gt;Forgot, I work with ArcGIS Pro 3.3.0&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 10:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496525#M11729</guid>
      <dc:creator>DirkTillmanns</dc:creator>
      <dc:date>2024-06-24T10:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the maximize-button invisible in a ProWindow?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496779#M11733</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Adding&amp;nbsp;ResizeMode="NoResize" to ProWindow xaml will hide maximize and minimize buttons and disable windows resizing.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;controls:ProWindow x:Class="************"
        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 Title" 
        ResizeMode="NoResize"
    &amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Jun 2024 18:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496779#M11733</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-06-24T18:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the maximize-button invisible in a ProWindow?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496973#M11739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That's not a solution. I want to allow a resize. But a maximize doesn't make sense in my dialog.&lt;/P&gt;&lt;P&gt;I think there are bugs in the Pro SDK here. Pro manipulates "System.Windows.Window", which it derives from, certainly unintentionally.&amp;nbsp;For example, a "ToolWindow" has no maximize button by default in "Window". But in "ProWindow" it does.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.window.windowstyle?view=windowsdesktop-8.0" target="_self"&gt;https://learn.microsoft.com/en-us/dotnet/api/system.windows.window.windowstyle?view=windowsdesktop-8.0&lt;/A&gt;&amp;nbsp;&lt;/P&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>Tue, 25 Jun 2024 07:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1496973#M11739</guid>
      <dc:creator>DirkTillmanns</dc:creator>
      <dc:date>2024-06-25T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make the maximize-button invisible in a ProWindow?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1507145#M11891</link>
      <description>&lt;P&gt;I just ran into this problem myself today.&amp;nbsp; Here's a workaround that worked for me:&amp;nbsp; As others mentioned, you'll still need to disable resizing in the XAML, but in this version it'll just be temporary.&amp;nbsp; You'll also need to set the window's &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Loaded&lt;/STRONG&gt; &lt;/FONT&gt;event to execute a method named &lt;FONT face="courier new,courier"&gt;Window_Loaded&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ResizeMode="NoResize"
ShowMaxRestoreButton="False"
Loaded="Window_Loaded"&lt;/LI-CODE&gt;&lt;P&gt;Next, go to your code-behind, and implement this method:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private void Window_Loaded(object sender, RoutedEventArgs e) =&amp;gt;
    this.ResizeMode = ResizeMode.CanResize;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the window will get initialized without the Max button being visible, then &lt;FONT face="courier new,courier"&gt;Window_Loaded&lt;/FONT&gt; will execute, and re-enable resizing later.&amp;nbsp; The&amp;nbsp;button should not reappear afterward.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 23:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-make-the-maximize-button-invisible-in-a/m-p/1507145#M11891</guid>
      <dc:creator>MichaelAustinESGG</dc:creator>
      <dc:date>2024-07-18T23:43:49Z</dc:date>
    </item>
  </channel>
</rss>

