Esempio n. 1
0
 public ScaleLineElementViewModel(MapPrinterLayer mapPrinterLayer)
 {
     PropertyChanged     += ScaleLineElementEntity_PropertyChanged;
     this.mapPrinterLayer = mapPrinterLayer;
     dragMode             = PrinterDragMode.Draggable;
     selectedUnitSystem   = ScaleLineUnitSystem.ImperialAndMetric;
     BackgroundStyle      = new AreaStyle();
     BackgroundStyle.CustomAreaStyles.Add(new AreaStyle(new GeoSolidBrush(GeoColor.StandardColors.Transparent)));
 }
Esempio n. 2
0
 public ScaleLineOrBarAdornmentLayerViewModel()
 {
     ForeColor    = new GeoSolidBrush(GeoColor.SimpleColors.Black);
     AlteColor    = new GeoSolidBrush(GeoColor.StandardColors.White);
     BackMask     = new AreaStyle(new GeoSolidBrush(GeoColor.StandardColors.Transparent));
     Width        = 392;
     height       = 32;
     MaximumWidth = 392;
     Thickness    = 8;
     selectedScaleLineUnitSystem = ScaleLineUnitSystem.ImperialAndMetric;
     InitializeDelayProcess();
 }