Reverted new() expressions

This commit is contained in:
ClemensFischer 2025-12-05 14:44:33 +01:00
parent 264f751d4e
commit 107b8e0f90
8 changed files with 52 additions and 23 deletions

View file

@ -55,9 +55,9 @@ namespace MapControl
set => SetValue(StrokeThicknessProperty, value);
}
private readonly Polyline line = new();
private readonly Polyline line = new Polyline();
private readonly TextBlock label = new()
private readonly TextBlock label = new TextBlock
{
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center