diff --git a/MapControl/Shared/MapPolygon.cs b/MapControl/Shared/MapPolygon.cs
index 1e34b3ed..04232d26 100644
--- a/MapControl/Shared/MapPolygon.cs
+++ b/MapControl/Shared/MapPolygon.cs
@@ -32,7 +32,7 @@ namespace MapControl
///
/// Gets or sets the Locations that define the polygon points.
///
-#if !UWP
+#if !WINUI && !UWP
[System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))]
#endif
public IEnumerable Locations
diff --git a/MapControl/Shared/MapPolyline.cs b/MapControl/Shared/MapPolyline.cs
index 7a6f22df..7a5fb6fe 100644
--- a/MapControl/Shared/MapPolyline.cs
+++ b/MapControl/Shared/MapPolyline.cs
@@ -32,7 +32,7 @@ namespace MapControl
///
/// Gets or sets the Locations that define the polyline points.
///
-#if !UWP
+#if !WINUI && !UWP
[System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))]
#endif
public IEnumerable Locations