Esempio n. 1
0
        private Collection <BitmapImage> GetSymbolTypeListItems()
        {
            Collection <BitmapImage> images = new Collection <BitmapImage>();

            PointStyle pointStyle = new PointStyle();

            pointStyle.SymbolSize       = 14;
            pointStyle.SymbolSolidBrush = new GeoSolidBrush(GeoColor.StandardColors.Black);
            pointStyle.SymbolPen        = new GeoPen(GeoColor.SimpleColors.Black);
            var bufferUnitNames = Enum.GetValues(typeof(PointSymbolType));

            foreach (var item in bufferUnitNames)
            {
                pointStyle.SymbolType = (PointSymbolType)item;
                BitmapImage bitmapImage = pointStyle.GetPreviewImage(16, 16);
                images.Add(bitmapImage);
            }

            return(images);
        }