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))); }
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(); }