# Changing backgroundOverlay brush doesn't work

**URL:** <https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300>\
**Category:** WPF\
**Created:** [October 2, 2018, 11:37pm UTC](https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300 "2018-10-02T23:37:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [October 2, 2018, 11:37pm UTC](https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300/1 "2018-10-02T23:37:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [October 3, 2018, 7:13am UTC](https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300/2 "2018-10-03T07:13:35Z")

</div>

Hi Dan,

Thanks to let us know it, I tested it and also found the BackgroundOverlay don’t works in the latest version, I have let our developer know it and it will be solved after they back from vacation next week.

You can use the code as below instead of BackgroundOverlay:

```
map.Background = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.LightBlue);

```

 ![](https://community.thinkgeo.com/uploads/default/original/3X/a/6/a6a7874a4d0e2f522d8313f27d06be3976658671.png)

Wish that’s helpful.

Regards,

Ethan

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [October 3, 2018, 7:33pm UTC](https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300/3 "2018-10-03T19:33:43Z")

</div>

Yup that’ll work for now, thanks!

---

<div class="post-metadata">

**Author:** ![Mark\_Lee](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@Mark\_Lee](https://community.thinkgeo.com/u/Mark_Lee)\
**Post date:** [October 4, 2018, 6:47am UTC](https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300/4 "2018-10-04T06:47:22Z")

</div>

Hi Dan,

We will check this issue ASAP, if there is any update, we will let you know here.  
Before we fixed that, you can use this workaround Ethan mentioned above.

Thanks  
Mark

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [October 8, 2018, 7:41am UTC](https://community.thinkgeo.com/t/changing-backgroundoverlay-brush-doesnt-work/9300/5 "2018-10-08T07:41:19Z")

</div>

Hi Dan,

Our developer had fixed it, please get the latest package for it: MapSuiteDesktopForWpf 11.0.0-beta062

Regards,

Ethan
