title: Drawing SVG from C#
body: <p>I want to create a UserControl that consists of a div. Inside the div would be a number of SVG rendered boxes.  How many boxes and their relative positions would be determined from data. </p>
  
  <p>The data would be in the form of a List of class Box where Box is as follows:</p>
  
  <pre><code> public class SVGBox
   {
      public int x { get; set; }  // x coordinate of a corner
      public int y { get; set; }  // x coordinate of same corner
      public int l { get; set; }  // length
      public int h { get; set; }  // height
      public string Color { get; set; }
      public string text { get; set; }
      public string uniqueKey { get; set; }
  
      public SVGBox (int X, int Y, int H, int W, string Text, string Key )
      {
          x = X;
          y = Y;
          h = H;
          w = W;
          text = Text;
          uniqueKey = Key;
      }
   }  
  </code></pre>
  
  <p>I have an example I found on the 'Net for rendering SVG from C#, but it involves writing out the entire HTML page with specific references in the DOCTYPE. How do I do this inside a User Control?</p>