<?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: Reposition popup in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613550#M13550</link>
    <description>&lt;P&gt;Brilliant.&lt;/P&gt;&lt;P&gt;Thanks&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>Mon, 12 May 2025 07:16:03 GMT</pubDate>
    <dc:creator>JustinTrody</dc:creator>
    <dc:date>2025-05-12T07:16:03Z</dc:date>
    <item>
      <title>Reposition popup</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613355#M13548</link>
      <description>&lt;P&gt;Hi, I am using the following wpf to create a popup when clicking on feature on map. The popup sometimes displays outside of the view window.&lt;/P&gt;&lt;P&gt;I would like to display the popup always in the centre of the map screen.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;lt;esri:MapView.Overlays&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;lt;esri:OverlayItemsControl&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Grid x:Name="popup" Visibility="Visible"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; esri:MapView.ViewOverlayAnchor="{Binding Geometry}"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IsHitTestVisible="False" HorizontalAlignment="Right" VerticalAlignment="Top" MaxWidth="200"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Grid.RowDefinitions&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;RowDefinition Height="*" /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;RowDefinition Height="20" /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Grid.RowDefinitions&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Grid.ColumnDefinitions&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ColumnDefinition Width="20" /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ColumnDefinition Width="*" /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Grid.ColumnDefinitions&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Border Background="#FFFFFF" BorderThickness="1,1,1,0" Margin="0,0,-33,19" BorderBrush="White" Grid.ColumnSpan="2" Grid.RowSpan="2"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;StackPanel Margin="20" x:Name="MyStackPanel"/&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/Border&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/esri:OverlayItemsControl&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;/esri:MapView.Overlays&amp;gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 May 2025 17:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613355#M13548</guid>
      <dc:creator>JustinTrody</dc:creator>
      <dc:date>2025-05-09T17:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reposition popup</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613450#M13549</link>
      <description>&lt;P&gt;Have you considered using the &lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.Controls.GeoView.ShowCalloutAt.html#Esri_ArcGISRuntime_UI_Controls_GeoView_ShowCalloutAt_Esri_ArcGISRuntime_Geometry_MapPoint_System_Windows_UIElement_System_Windows_Point_" target="_self"&gt;ShowCalloutAt&lt;/A&gt; method instead? This will host your UI element and move it around to keep it on top of the map.&lt;/P&gt;&lt;P&gt;A more advanced method would be to create a custom control yourself to host your content, and have that implement &lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/wpf/Esri.ArcGISRuntime.UI.IViewOverlay.html" target="_self"&gt;IViewOverlay&lt;/A&gt;&amp;nbsp;interface, which will give you the information needed to re-arrange the view yourself (this is also what the callout uses to do this).&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 21:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613450#M13549</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-05-09T21:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reposition popup</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613550#M13550</link>
      <description>&lt;P&gt;Brilliant.&lt;/P&gt;&lt;P&gt;Thanks&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>Mon, 12 May 2025 07:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/reposition-popup/m-p/1613550#M13550</guid>
      <dc:creator>JustinTrody</dc:creator>
      <dc:date>2025-05-12T07:16:03Z</dc:date>
    </item>
  </channel>
</rss>

