I’m simply trying to change the color of the map background. I’ve done this in the WinForms version fine.
private void Map_Loaded(object sender, RoutedEventArgs e)
{
Map.MapUnit = GeographyUnit.DecimalDegree;
Map.MapResizeMode = ThinkGeo.MapSuite.Shapes.MapResizeMode.PreserveScaleAndCenter;
BackgroundOverlay backgroundOverlay = new BackgroundOverlay();
backgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.DeepOcean);
Map.BackgroundOverlay = backgroundOverlay;
Map.Refresh();
}
The map stays white, but looking at the watchlist, it shows the backgroundbrush set to the correct color. I have the same exact code in the winforms version and it works. What could the issue be?