title: How to add multiple buttons to canvas in WPF?
body: <p>I am able to add multiple button controls to Grid panel and Stack panel, but i am not able to add it Canvas panel is there any way to do it?</p>
  
  <p>Please find below code for Grid and Stack.</p>
  
  <pre><code> foreach (string subfolder in Directory.GetDirectories(path))
          {
              ToggleButton btn = new ToggleButton();
              btn.Name = "btn" + column.ToString();
              btn.Content = subfolder.Substring(subfolder.LastIndexOf("\\") + 1);
              btn.Tag = subfolder;
              btn.Margin = new Thickness(15, 15, 10, 0);
              btn.Width = 200;
              btn.Height = 50;
              btn.Checked += btn_Checked;
              btn.Unchecked += btn_Unchecked;
              btn.HorizontalAlignment = HorizontalAlignment.Left;                
              GridPanel.Children.Add(btn);//Adding controls to Grid Panel
         }
  </code></pre>
  
  <p>How to do same for canvas Panel?
  Thanks in advance.</p>