Ejemplo n.º 1
0
        public SolidFillRenderer(Renderer renderer, SolidFill fill, IBaseRenderer parent)
            : base(renderer, fill, parent)
        {
            _renderer = renderer;
            _fill = fill;
            _fill.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(fill_PropertyChanged);

            _path = new GraphicsPath();
        }
Ejemplo n.º 2
0
        public override void ReadXml(XmlReader reader)
        {
            var solidFill = new SolidFill();

            while (reader.MoveToNextAttribute())
                if (!Style.TryReadXmlAttribute(reader))
                    MapXmlReader.HandleUnexpectedAttribute(reader.LocalName);

            reader.MoveToElement();
            if (!reader.IsEmptyElement && reader.Read() && reader.MoveToContent() != XmlNodeType.EndElement)
                throw new Exception("SolidFill element should be empty");
            reader.Read();
        }