From a9c1a4c320561e3cecbab05f2e74be8aaf18befd Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Mon, 24 Mar 2025 23:20:32 +0100 Subject: [PATCH] Update MapPanel.WinUI.cs --- MapControl/WinUI/MapPanel.WinUI.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MapControl/WinUI/MapPanel.WinUI.cs b/MapControl/WinUI/MapPanel.WinUI.cs index 4720be67..1818a7b7 100644 --- a/MapControl/WinUI/MapPanel.WinUI.cs +++ b/MapControl/WinUI/MapPanel.WinUI.cs @@ -27,6 +27,7 @@ namespace MapControl public MapPanel() { + UseLayoutRounding = false; InitMapElement(this); } @@ -40,7 +41,7 @@ namespace MapControl { // Workaround for missing property value inheritance. // Loaded and Unloaded handlers set and clear the ParentMap property value. - + // element.Loaded += (s, e) => GetParentMap((FrameworkElement)s); element.Unloaded += (s, e) => ((FrameworkElement)s).ClearValue(ParentMapProperty); } @@ -51,7 +52,7 @@ namespace MapControl var parentMap = (MapBase)element.GetValue(ParentMapProperty); // Traverse visual tree because of missing property value inheritance. - + // if (parentMap == null && VisualTreeHelper.GetParent(element) is FrameworkElement parentElement) {