In my previous app built using the .NET API for WPF. I set the Map.Backgound color and added dynamic layers above it. In the 10.2.7 .NET SDK. that property does not exist. I do see it on the MavView object but that doesn't work either. How to I set a background color on the map?
Here's what I'm talking about (attached). I don't want to see the gray backgound with the grids. I want that to be a solid color.
You can use MapView.MapBackground property. You can also set LineWidth to 0.
MyMapView<SPAN class="punctuation token">.</SPAN>MapBackground <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">MapBackground</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> Color <SPAN class="operator token">=</SPAN> Colors<SPAN class="punctuation token">.</SPAN>Yellow <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Background color property is .net control property, not the replacement of Mapview.MapBackground .
MapView Class
There is a BackgroundColor property which seems to not be in the documentation.
I could cound the following property in .Net Sdk v100 ,could you please explain how to change the background in .Net Sdk v100
Thanks
Haider
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.