title: C# WPF Controls in WrapPanel
body: <p><a href="https://i.stack.imgur.com/AOI0S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AOI0S.png" alt="enter image description here"></a>Hey guys,
  I'm trying to add some controls via code, but I have one little problem.
  I have checkboxes inside WrapPanel. Checkboxes are transformed to be 1.5x bigger. When I changing size of window, they're colliding with each other.
  Without transforming everything is normal. How to fix it?</p>
  
  <pre><code>        List&lt;System.Windows.Controls.CheckBox&gt; CheckboxList = new List&lt;CheckBox&gt;();
  
          public List&lt;string&gt; Users = new List&lt;string&gt; { "First Student", "Very First Student", "Second Student", "Student Student" };
  
          for (int i = 0; i &lt; Users.Count; i++)
          {
              CheckboxList.Add(new System.Windows.Controls.CheckBox());
              heckboxList[i].RenderTransform = new ScaleTransform(1.5,1.5);
  
              CheckboxList[i].Content = Users[i];
              CheckboxList[i].Margin = new Thickness(5, 5, 5, 0);
              Panel.Children.Add(CheckboxList[i]);             
          }
      }
  </code></pre>