From 4fa24707391240a1d8ed1b6e3fd63ebec185e466 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Fri, 30 Jan 2026 08:14:45 +0100 Subject: [PATCH] Restored partial declarations for CsWinRT1028 --- MapControl/Shared/GroundOverlay.cs | 2 +- MapControl/Shared/ImageFileCache.cs | 2 +- MapControl/Shared/ImageTileList.cs | 2 +- MapControl/Shared/LocationCollection.cs | 2 +- MapControl/Shared/MapBorderPanel.cs | 2 +- MapControl/Shared/MapMultiPolygon.cs | 2 +- MapControl/Shared/MapOverlaysPanel.cs | 2 +- MapControl/Shared/MapPolygon.cs | 2 +- MapControl/Shared/MapPolyline.cs | 2 +- MapControl/Shared/MapScale.cs | 2 +- MapControl/Shared/MapTileLayer.cs | 2 +- MapControl/Shared/TypeConverters.cs | 10 +++++----- MapControl/Shared/WmsImageLayer.cs | 2 +- MapControl/Shared/WmtsTileLayer.cs | 2 +- MapControl/Shared/WmtsTileMatrixLayer.cs | 2 +- MapControl/WinUI/MapContentControl.WinUI.cs | 2 +- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/MapControl/Shared/GroundOverlay.cs b/MapControl/Shared/GroundOverlay.cs index 6a3e7156..eb4ddd6e 100644 --- a/MapControl/Shared/GroundOverlay.cs +++ b/MapControl/Shared/GroundOverlay.cs @@ -26,7 +26,7 @@ using Avalonia.Media; namespace MapControl { - public class GroundOverlay : MapPanel + public partial class GroundOverlay : MapPanel { private class ImageOverlay { diff --git a/MapControl/Shared/ImageFileCache.cs b/MapControl/Shared/ImageFileCache.cs index bf25969a..e56b7701 100644 --- a/MapControl/Shared/ImageFileCache.cs +++ b/MapControl/Shared/ImageFileCache.cs @@ -23,7 +23,7 @@ namespace MapControl.Caching /// IDistributedCache implementation that creates a single file per cache entry. /// The cache expiration time is stored in the file's CreationTime property. /// - public sealed class ImageFileCache : IDistributedCache, IDisposable + public sealed partial class ImageFileCache : IDistributedCache, IDisposable { private readonly MemoryDistributedCache memoryCache; private readonly DirectoryInfo rootDirectory; diff --git a/MapControl/Shared/ImageTileList.cs b/MapControl/Shared/ImageTileList.cs index 6ec65733..c5567cfb 100644 --- a/MapControl/Shared/ImageTileList.cs +++ b/MapControl/Shared/ImageTileList.cs @@ -3,7 +3,7 @@ using System.Linq; namespace MapControl { - public class ImageTileList : List + public partial class ImageTileList : List { public ImageTileList() { diff --git a/MapControl/Shared/LocationCollection.cs b/MapControl/Shared/LocationCollection.cs index 363ff3c3..671e4d76 100644 --- a/MapControl/Shared/LocationCollection.cs +++ b/MapControl/Shared/LocationCollection.cs @@ -13,7 +13,7 @@ namespace MapControl #else [System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))] #endif - public class LocationCollection : List + public partial class LocationCollection : List { public LocationCollection() { diff --git a/MapControl/Shared/MapBorderPanel.cs b/MapControl/Shared/MapBorderPanel.cs index 9170d667..e5072c96 100644 --- a/MapControl/Shared/MapBorderPanel.cs +++ b/MapControl/Shared/MapBorderPanel.cs @@ -16,7 +16,7 @@ namespace MapControl /// Such elements are arranged at a distance of BorderWidth/2 from the edges of the /// MapBorderPanel in direction of their original azimuth from the map center. /// - public class MapBorderPanel : MapPanel + public partial class MapBorderPanel : MapPanel { public static readonly DependencyProperty BorderWidthProperty = DependencyPropertyHelper.Register(nameof(BorderWidth)); diff --git a/MapControl/Shared/MapMultiPolygon.cs b/MapControl/Shared/MapMultiPolygon.cs index 9fa47f61..adcb0a07 100644 --- a/MapControl/Shared/MapMultiPolygon.cs +++ b/MapControl/Shared/MapMultiPolygon.cs @@ -17,7 +17,7 @@ namespace MapControl /// for the Polygons property if collection changes of the property itself and its /// elements are both supposed to trigger UI updates. /// - public class MapMultiPolygon : MapPolypoint + public partial class MapMultiPolygon : MapPolypoint { public static readonly DependencyProperty PolygonsProperty = DependencyPropertyHelper.Register>>(nameof(Polygons), null, diff --git a/MapControl/Shared/MapOverlaysPanel.cs b/MapControl/Shared/MapOverlaysPanel.cs index 8f78451a..a2b5cb7c 100644 --- a/MapControl/Shared/MapOverlaysPanel.cs +++ b/MapControl/Shared/MapOverlaysPanel.cs @@ -16,7 +16,7 @@ namespace MapControl /// /// A MapPanel with a collection of GroundOverlay or GeoImage children. /// - public class MapOverlaysPanel : MapPanel + public partial class MapOverlaysPanel : MapPanel { public static readonly DependencyProperty SourcePathsProperty = DependencyPropertyHelper.Register>(nameof(SourcePaths), null, diff --git a/MapControl/Shared/MapPolygon.cs b/MapControl/Shared/MapPolygon.cs index b5721247..8b7fe830 100644 --- a/MapControl/Shared/MapPolygon.cs +++ b/MapControl/Shared/MapPolygon.cs @@ -12,7 +12,7 @@ namespace MapControl /// /// A polygon defined by a collection of Locations. /// - public class MapPolygon : MapPolypoint + public partial class MapPolygon : MapPolypoint { public static readonly DependencyProperty LocationsProperty = DependencyPropertyHelper.Register>(nameof(Locations), null, diff --git a/MapControl/Shared/MapPolyline.cs b/MapControl/Shared/MapPolyline.cs index 544cb1c4..aabc3331 100644 --- a/MapControl/Shared/MapPolyline.cs +++ b/MapControl/Shared/MapPolyline.cs @@ -12,7 +12,7 @@ namespace MapControl /// /// A polyline defined by a collection of Locations. /// - public class MapPolyline : MapPolypoint + public partial class MapPolyline : MapPolypoint { public static readonly DependencyProperty LocationsProperty = DependencyPropertyHelper.Register>(nameof(Locations), null, diff --git a/MapControl/Shared/MapScale.cs b/MapControl/Shared/MapScale.cs index 4a6d3bc5..258ab558 100644 --- a/MapControl/Shared/MapScale.cs +++ b/MapControl/Shared/MapScale.cs @@ -31,7 +31,7 @@ namespace MapControl /// /// Draws a map scale overlay. /// - public class MapScale : MapPanel + public partial class MapScale : MapPanel { public static readonly DependencyProperty PaddingProperty = DependencyPropertyHelper.Register(nameof(Padding), new Thickness(4)); diff --git a/MapControl/Shared/MapTileLayer.cs b/MapControl/Shared/MapTileLayer.cs index fbfdd5df..33b6101a 100644 --- a/MapControl/Shared/MapTileLayer.cs +++ b/MapControl/Shared/MapTileLayer.cs @@ -22,7 +22,7 @@ namespace MapControl /// /// Displays a Web Mercator tile pyramid. /// - public class MapTileLayer : TilePyramidLayer + public partial class MapTileLayer : TilePyramidLayer { private const int TileSize = 256; diff --git a/MapControl/Shared/TypeConverters.cs b/MapControl/Shared/TypeConverters.cs index 348b0e7f..52e775d7 100644 --- a/MapControl/Shared/TypeConverters.cs +++ b/MapControl/Shared/TypeConverters.cs @@ -18,7 +18,7 @@ using ConverterCulture = System.Globalization.CultureInfo; namespace MapControl { - public class LocationConverter : TypeConverter, IValueConverter + public partial class LocationConverter : TypeConverter, IValueConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { @@ -41,7 +41,7 @@ namespace MapControl } } - public class LocationCollectionConverter : TypeConverter, IValueConverter + public partial class LocationCollectionConverter : TypeConverter, IValueConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { @@ -64,7 +64,7 @@ namespace MapControl } } - public class BoundingBoxConverter : TypeConverter, IValueConverter + public partial class BoundingBoxConverter : TypeConverter, IValueConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { @@ -87,7 +87,7 @@ namespace MapControl } } - public class TileSourceConverter : TypeConverter, IValueConverter + public partial class TileSourceConverter : TypeConverter, IValueConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { @@ -110,7 +110,7 @@ namespace MapControl } } - public class MapProjectionConverter : TypeConverter, IValueConverter + public partial class MapProjectionConverter : TypeConverter, IValueConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { diff --git a/MapControl/Shared/WmsImageLayer.cs b/MapControl/Shared/WmsImageLayer.cs index 365d06d4..d28e8547 100644 --- a/MapControl/Shared/WmsImageLayer.cs +++ b/MapControl/Shared/WmsImageLayer.cs @@ -25,7 +25,7 @@ namespace MapControl /// /// Displays a single map image from a Web Map Service (WMS). /// - public class WmsImageLayer : MapImageLayer + public partial class WmsImageLayer : MapImageLayer { private static ILogger Logger => field ??= ImageLoader.LoggerFactory?.CreateLogger(typeof(WmsImageLayer)); diff --git a/MapControl/Shared/WmtsTileLayer.cs b/MapControl/Shared/WmtsTileLayer.cs index 08599bf2..7a2cc590 100644 --- a/MapControl/Shared/WmtsTileLayer.cs +++ b/MapControl/Shared/WmtsTileLayer.cs @@ -26,7 +26,7 @@ namespace MapControl /// /// Displays map tiles from a Web Map Tile Service (WMTS). /// - public class WmtsTileLayer : TilePyramidLayer + public partial class WmtsTileLayer : TilePyramidLayer { private static ILogger Logger => field ??= ImageLoader.LoggerFactory?.CreateLogger(typeof(WmtsTileLayer)); diff --git a/MapControl/Shared/WmtsTileMatrixLayer.cs b/MapControl/Shared/WmtsTileMatrixLayer.cs index 7a8978d4..cee1314d 100644 --- a/MapControl/Shared/WmtsTileMatrixLayer.cs +++ b/MapControl/Shared/WmtsTileMatrixLayer.cs @@ -20,7 +20,7 @@ using Avalonia.Media; namespace MapControl { - public class WmtsTileMatrixLayer : Panel + public partial class WmtsTileMatrixLayer : Panel { public WmtsTileMatrixLayer(WmtsTileMatrix wmtsTileMatrix, int zoomLevel) { diff --git a/MapControl/WinUI/MapContentControl.WinUI.cs b/MapControl/WinUI/MapContentControl.WinUI.cs index 40f41544..71f0d4e2 100644 --- a/MapControl/WinUI/MapContentControl.WinUI.cs +++ b/MapControl/WinUI/MapContentControl.WinUI.cs @@ -13,7 +13,7 @@ namespace MapControl /// /// ContentControl placed on a MapPanel at a geographic location specified by the Location property. /// - public class MapContentControl : ContentControl + public partial class MapContentControl : ContentControl { public static readonly DependencyProperty AutoCollapseProperty = DependencyPropertyHelper.Register(nameof(AutoCollapse), false,