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

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