public static void SetRectangle(this SvgRectangle r, RectangleF bounds) { r.X = bounds.X; r.Y = bounds.Y; r.Width = bounds.Width; r.Height = bounds.Height; }
public SvgWidget(string name) { Name = name; Background = new SvgRectangle(); Background.CustomAttributes["class"] = "menu"; this.Children.Add(Background); this.Visible = true; }
public static RectangleF GetRectangle(this SvgRectangle r) { return(new RectangleF(r.X, r.Y, r.Width, r.Height)); }