Restored partial declarations for CsWinRT1028

This commit is contained in:
ClemensFischer 2026-01-30 08:14:45 +01:00
parent 359cbe8908
commit 4fa2470739
16 changed files with 20 additions and 20 deletions

View file

@ -26,7 +26,7 @@ using Avalonia.Media;
namespace MapControl
{
public class GroundOverlay : MapPanel
public partial class GroundOverlay : MapPanel
{
private class ImageOverlay
{

View file

@ -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.
/// </summary>
public sealed class ImageFileCache : IDistributedCache, IDisposable
public sealed partial class ImageFileCache : IDistributedCache, IDisposable
{
private readonly MemoryDistributedCache memoryCache;
private readonly DirectoryInfo rootDirectory;

View file

@ -3,7 +3,7 @@ using System.Linq;
namespace MapControl
{
public class ImageTileList : List<ImageTile>
public partial class ImageTileList : List<ImageTile>
{
public ImageTileList()
{

View file

@ -13,7 +13,7 @@ namespace MapControl
#else
[System.ComponentModel.TypeConverter(typeof(LocationCollectionConverter))]
#endif
public class LocationCollection : List<Location>
public partial class LocationCollection : List<Location>
{
public LocationCollection()
{

View file

@ -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.
/// </summary>
public class MapBorderPanel : MapPanel
public partial class MapBorderPanel : MapPanel
{
public static readonly DependencyProperty BorderWidthProperty =
DependencyPropertyHelper.Register<MapBorderPanel, double>(nameof(BorderWidth));

View file

@ -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.
/// </summary>
public class MapMultiPolygon : MapPolypoint
public partial class MapMultiPolygon : MapPolypoint
{
public static readonly DependencyProperty PolygonsProperty =
DependencyPropertyHelper.Register<MapMultiPolygon, IEnumerable<IEnumerable<Location>>>(nameof(Polygons), null,

View file

@ -16,7 +16,7 @@ namespace MapControl
/// <summary>
/// A MapPanel with a collection of GroundOverlay or GeoImage children.
/// </summary>
public class MapOverlaysPanel : MapPanel
public partial class MapOverlaysPanel : MapPanel
{
public static readonly DependencyProperty SourcePathsProperty =
DependencyPropertyHelper.Register<MapOverlaysPanel, IEnumerable<string>>(nameof(SourcePaths), null,

View file

@ -12,7 +12,7 @@ namespace MapControl
/// <summary>
/// A polygon defined by a collection of Locations.
/// </summary>
public class MapPolygon : MapPolypoint
public partial class MapPolygon : MapPolypoint
{
public static readonly DependencyProperty LocationsProperty =
DependencyPropertyHelper.Register<MapPolygon, IEnumerable<Location>>(nameof(Locations), null,

View file

@ -12,7 +12,7 @@ namespace MapControl
/// <summary>
/// A polyline defined by a collection of Locations.
/// </summary>
public class MapPolyline : MapPolypoint
public partial class MapPolyline : MapPolypoint
{
public static readonly DependencyProperty LocationsProperty =
DependencyPropertyHelper.Register<MapPolyline, IEnumerable<Location>>(nameof(Locations), null,

View file

@ -31,7 +31,7 @@ namespace MapControl
/// <summary>
/// Draws a map scale overlay.
/// </summary>
public class MapScale : MapPanel
public partial class MapScale : MapPanel
{
public static readonly DependencyProperty PaddingProperty =
DependencyPropertyHelper.Register<MapScale, Thickness>(nameof(Padding), new Thickness(4));

View file

@ -22,7 +22,7 @@ namespace MapControl
/// <summary>
/// Displays a Web Mercator tile pyramid.
/// </summary>
public class MapTileLayer : TilePyramidLayer
public partial class MapTileLayer : TilePyramidLayer
{
private const int TileSize = 256;

View file

@ -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)
{

View file

@ -25,7 +25,7 @@ namespace MapControl
/// <summary>
/// Displays a single map image from a Web Map Service (WMS).
/// </summary>
public class WmsImageLayer : MapImageLayer
public partial class WmsImageLayer : MapImageLayer
{
private static ILogger Logger => field ??= ImageLoader.LoggerFactory?.CreateLogger(typeof(WmsImageLayer));

View file

@ -26,7 +26,7 @@ namespace MapControl
/// <summary>
/// Displays map tiles from a Web Map Tile Service (WMTS).
/// </summary>
public class WmtsTileLayer : TilePyramidLayer
public partial class WmtsTileLayer : TilePyramidLayer
{
private static ILogger Logger => field ??= ImageLoader.LoggerFactory?.CreateLogger(typeof(WmtsTileLayer));

View file

@ -20,7 +20,7 @@ using Avalonia.Media;
namespace MapControl
{
public class WmtsTileMatrixLayer : Panel
public partial class WmtsTileMatrixLayer : Panel
{
public WmtsTileMatrixLayer(WmtsTileMatrix wmtsTileMatrix, int zoomLevel)
{

View file

@ -13,7 +13,7 @@ namespace MapControl
/// <summary>
/// ContentControl placed on a MapPanel at a geographic location specified by the Location property.
/// </summary>
public class MapContentControl : ContentControl
public partial class MapContentControl : ContentControl
{
public static readonly DependencyProperty AutoCollapseProperty =
DependencyPropertyHelper.Register<MapContentControl, bool>(nameof(AutoCollapse), false,