Use expression bodies for properties

This commit is contained in:
Clemens 2022-08-06 11:04:49 +02:00
parent 74ba508e26
commit 209833561e
6 changed files with 19 additions and 29 deletions

View file

@ -51,8 +51,8 @@ namespace MapControl.UiTools
public MapBase Map
{
get { return (MapBase)GetValue(MapProperty); }
set { SetValue(MapProperty, value); }
get => (MapBase)GetValue(MapProperty);
set => SetValue(MapProperty, value);
}
public Collection<MapLayerItem> MapLayers { get; } = new ObservableCollection<MapLayerItem>();

View file

@ -50,8 +50,8 @@ namespace MapControl.UiTools
public MapBase Map
{
get { return (MapBase)GetValue(MapProperty); }
set { SetValue(MapProperty, value); }
get => (MapBase)GetValue(MapProperty);
set => SetValue(MapProperty, value);
}
public Collection<MapProjectionItem> MapProjections { get; } = new ObservableCollection<MapProjectionItem>();