Setting maps color mode

You can display the map in a light color mode or a dark mode by using the ColorMode property. The values that this property can take—Light or Dark—is accepts are specified contained in the MapColorMode enumeration. The default is Light.
In the following illustration, the first map is in the Light color mode and the second map is in the Dark color mode.


As easy as it may look, this is the code for it:

void Light_Click(object sender, EventArgs args)
   MyMap.ColorMode = MapColorMode.Light;

void Dark_Click(object sender, EventArgs args)
   MyMap.ColorMode = MapColorMode.Dark;

Happy coding 🙂


Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:


Stai commentando usando il tuo account Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

This site uses Akismet to reduce spam. Learn how your comment data is processed.