Simplified new expressions

This commit is contained in:
ClemensFischer 2025-11-15 00:33:32 +01:00
parent ae0ebc6fdb
commit 2ec8b1b987
6 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@ namespace MapControl
public class ImageTile(int zoomLevel, int x, int y, int columnCount)
: Tile(zoomLevel, x, y, columnCount)
{
public Image Image { get; } = new Image { Stretch = Stretch.Fill };
public Image Image { get; } = new() { Stretch = Stretch.Fill };
public override async Task LoadImageAsync(Func<Task<ImageSource>> loadImageFunc)
{