How to change WPF control background to white?

3745
3
Jump to solution
07-13-2015 04:28 PM
AnnaLambrechtsen
New Contributor

the background of the control is grey with grid lines, the client wants it to be white - how to change this? i've changed every background setting i can find to white, but no joy.

it is definitely the control background not the map service image backgrounds. if i change the bottom map service to JPG it is no longer is transparent and is white, but every time you pan you see the grey with grid lines until the new image draws, which the client doesn't like.

i'm using 100% dynamic map services, there is no tiled layer.

i've attached a couple of pictures of what it looks like - one raw, one with some green circles illustrating the grid lines i'm talking about.

0 Kudos
1 Solution

Accepted Solutions
FreddieGibson
Occasional Contributor III

Have you tried setting the GridColor of the MapView control's MapBackground to Transparent and the Color to White?

Before

before.png

After

after.png

View solution in original post

3 Replies
FreddieGibson
Occasional Contributor III

Have you tried setting the GridColor of the MapView control's MapBackground to Transparent and the Color to White?

Before

before.png

After

after.png

AnnaLambrechtsen
New Contributor

excellent thanks, that's exactly what i was looking for.

0 Kudos
FaiyazKhan2
New Contributor II

With ArcGis Runtime SDK version 100.0.0 you can do this using

<esri:MapView Name="myMapview" Map="{Binding Map, Source={StaticResource MapViewModel}}">
   <esri:MapView.BackgroundGrid>
      <esri:BackgroundGrid Color="White" GridLineColor="Transparent"/>
   </esri:MapView.BackgroundGrid>
</esri:MapView>

0 Kudos