Exemplo n.º 1
0
        public SVGWidgetViewModel(IWidget widget)
        {
            _model = new SVGModel(widget);

            _bSupportBorder       = false;
            _bSupportBackground   = false;
            _bSupportText         = false;
            _bSupportTextVerAlign = false;
            _bSupportTextHorAlign = false;
            widgetGID             = widget.Guid;
            Type = ObjectType.SVG;
            _bSupportGradientBackground = false;
            _bSupportGradientBorderline = false;
            _bSupportRotate             = true;
            _bSupportTextRotate         = false;

            _BackgroundColor = new StyleColor(ColorFillType.Solid, 0);
            _StrokeColor     = new StyleColor(ColorFillType.Solid, 0);

            // Create conversion options and a file reader
            WpfDrawingSettings settings = new WpfDrawingSettings();

            settings.IncludeRuntime = true;
            settings.TextAsGeometry = false;
            _converter = new FileSvgReader(settings);
            SVGSource  = LoadSvg((_model as SVGModel).SVGStream);
        }
Exemplo n.º 2
0
 override protected void IniCreateDataModel(IRegion obj)
 {
     _model = new SVGModel(obj as IWidget);
 }