private void SetLayerType(TileLayer.LayerType type) { (MyMap.Layers[0] as TileLayer).LayerStyle = type; }