mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Default Map Background
This commit is contained in:
parent
25dc5dc139
commit
3c907c3345
6 changed files with 11 additions and 7 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue