Default Map Background

This commit is contained in:
ClemensFischer 2024-05-24 09:13:41 +02:00
parent 25dc5dc139
commit 3c907c3345
6 changed files with 11 additions and 7 deletions

View file

@ -70,6 +70,7 @@ namespace MapControl
public MapBase()
{
// Set Background by Style to enable resetting by ClearValue in MapLayerPropertyChanged.
// There is no default Style in Generic.xaml because MapBase has no DefaultStyleKey property.
//
var style = new Style(typeof(MapBase));
style.Setters.Add(new Setter(BackgroundProperty, new SolidColorBrush(Colors.White)));