Пример #1
0
        private static string GetImagerySet(BingMapsImageryStyle imageryStyle)
        {
            var imagerySet = "Road";

            if (imageryStyle == BingMapsImageryStyle.StreetMapStyle)
            {
                imagerySet = "Road";
            }
            else if (imageryStyle == BingMapsImageryStyle.SatelliteNoLabelsMapStyle)
            {
                imagerySet = "Aerial";
            }
            else // if (imageryStyle == BingMapsImageryStyle.SatelliteMapStyle)
            {
                imagerySet = "AerialWithLabels";
            }

            return(imagerySet);
        }
Пример #2
0
 private void OnImageryStylePropertyChanged(BingMapsImageryStyle oldValue, BingMapsImageryStyle newValue)
 {
     this.Validate();
 }