From a9b98c862f64a232bfb4bc9ec5ad1b79fd7a1de1 Mon Sep 17 00:00:00 2001 From: Clemens Date: Wed, 9 Feb 2022 20:47:01 +0100 Subject: [PATCH] Changed default Pushpin HorizontalAlignment --- MapControl/Shared/PushpinBorder.cs | 4 ++-- MapControl/UWP/Themes/Generic.xaml | 2 +- MapControl/WPF/Themes/Generic.xaml | 2 +- MapControl/WinUI/Themes/Generic.xaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MapControl/Shared/PushpinBorder.cs b/MapControl/Shared/PushpinBorder.cs index 5c525b55..92612286 100644 --- a/MapControl/Shared/PushpinBorder.cs +++ b/MapControl/Shared/PushpinBorder.cs @@ -69,7 +69,7 @@ namespace MapControl figure.Segments.Add(ArcTo(x2 - r3, y2, r3)); } - if (HorizontalAlignment != HorizontalAlignment.Left && HorizontalAlignment != HorizontalAlignment.Right) + if (HorizontalAlignment == HorizontalAlignment.Center) { var c = width / 2d; figure.Segments.Add(LineTo(c + aw / 2d, y2)); @@ -77,7 +77,7 @@ namespace MapControl figure.Segments.Add(LineTo(c - aw / 2d, y2)); } - if (HorizontalAlignment == HorizontalAlignment.Left) + if (HorizontalAlignment == HorizontalAlignment.Left || HorizontalAlignment == HorizontalAlignment.Stretch) { figure.Segments.Add(LineTo(x1 + aw, y2)); figure.Segments.Add(LineTo(x1, y3)); diff --git a/MapControl/UWP/Themes/Generic.xaml b/MapControl/UWP/Themes/Generic.xaml index fbd41ed6..e574f2bc 100644 --- a/MapControl/UWP/Themes/Generic.xaml +++ b/MapControl/UWP/Themes/Generic.xaml @@ -47,7 +47,7 @@