<?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: OAuth dialog sizing (WPF 4.7.2) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412288#M12641</link>
    <description>&lt;P&gt;It's been a while since I tried that, but if I recall the code to work with the new webview2 was almost identical. There's some good doc here:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf" target="_blank"&gt;https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf&lt;/A&gt;&lt;BR /&gt;There might also be some app settings you need to set up to better handle high-dpi scenarios, since it looks to me from the screenshot that you might be running with a high scaling factor. See&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process" target="_blank"&gt;https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 14:46:15 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2024-04-19T14:46:15Z</dc:date>
    <item>
      <title>OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411838#M12634</link>
      <description>&lt;P&gt;I am setting up an app in WPF.&amp;nbsp; In the past all Windows WPF apps I have deployed have used Windows or SAML authentication and so have never had an actual login dialog.&lt;/P&gt;&lt;P&gt;Setting this app with standard ArcGIS Enterprise credentials and the dialog looks very poor.&amp;nbsp; The returned login is very small.&amp;nbsp; Is there any way to change this size?&amp;nbsp; I don't see anything that allows that control.&amp;nbsp; But this looks very poor&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; &amp;nbsp;-Joe&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="JoeHershman_0-1713467216055.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101426i0918BD03BDAD98A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeHershman_0-1713467216055.png" alt="JoeHershman_0-1713467216055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 19:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411838#M12634</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2024-04-18T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411863#M12635</link>
      <description>&lt;P&gt;The dialog is hosted by the portal you're accessing and as such is just the size of the HTML returned by the server. Generally I'd use a smaller window to host the HTML content to better match the HTML content returned.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 19:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411863#M12635</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-04-18T19:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411874#M12636</link>
      <description>&lt;P&gt;I can shrink my window so there is not as much blank space but it is really small.&amp;nbsp; And very different size from how it renders on a web page.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeHershman_0-1713471385580.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101436i0AACB631625A7DC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeHershman_0-1713471385580.png" alt="JoeHershman_0-1713471385580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 20:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411874#M12636</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2024-04-18T20:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411875#M12637</link>
      <description>&lt;P&gt;It looks like there's a scaling factor issue at play, comparing to the text size in the browser window behind it.&lt;BR /&gt;Are you using the newer Webview2 browser? Or the older IE7 based one that is built into WPF?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 20:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1411875#M12637</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-04-18T20:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412255#M12639</link>
      <description>&lt;P&gt;I am using the old WPF one.&amp;nbsp; I started looking into the WebView2 after seeing this and am having a hard time implementing in the pattern of how the&amp;nbsp;OAuthAuthorizeHandler is implemented in it's own class.&amp;nbsp; Do you know of an example using Webview in the&amp;nbsp;OAuthAuthorizeHandler?&amp;nbsp; I will play around with it a little more and see if I can get it to work&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412255#M12639</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2024-04-19T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412288#M12641</link>
      <description>&lt;P&gt;It's been a while since I tried that, but if I recall the code to work with the new webview2 was almost identical. There's some good doc here:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf" target="_blank"&gt;https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf&lt;/A&gt;&lt;BR /&gt;There might also be some app settings you need to set up to better handle high-dpi scenarios, since it looks to me from the screenshot that you might be running with a high scaling factor. See&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process" target="_blank"&gt;https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412288#M12641</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-04-19T14:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth dialog sizing (WPF 4.7.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412414#M12642</link>
      <description>&lt;P&gt;Ended up being basically the same.&amp;nbsp; The one 'trick' was that you cannot use the Navigate methods on the WebView2 but need to set the Source property&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;_webView.Source = new Uri(authorizeUri);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The WebView2 needs to initialize, and getting the initialization methods to work was giving my fits.&amp;nbsp; But setting Source will also call the initialization methods in the background.&amp;nbsp; Much better look&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeHershman_1-1713547256351.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101553i5406DECB6856E67B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeHershman_1-1713547256351.png" alt="JoeHershman_1-1713547256351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1052"&gt;@dotMorten_esri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 17:22:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/oauth-dialog-sizing-wpf-4-7-2/m-p/1412414#M12642</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2024-04-19T17:22:39Z</dc:date>
    </item>
  </channel>
</rss>

