private void UpdatePreview()
 {
     if (IsLoaded)
     {
         var          image = MapSymbolGenerator.GetSymbol(Shape, (int)sizeSlider.Value, ctlColor.SelectedColor, chkDrawOutline.IsChecked.ValueOrFalse(), Colors.Black);
         BitmapSource s     = GraphicsUtils.SystemDrawingImageToBitmapSource(image);
         imgPreview.Source = s;
         if (ValuesChanged != null)
         {
             ValuesChanged(this);
         }
     }
 }
 public PointShapeViewModel(MapPointShape shape)
 {
     Shape = shape;
     Icon  = GraphicsUtils.SystemDrawingImageToBitmapSource(MapSymbolGenerator.GetSymbol(shape, 10, Colors.Black, true));
 }