title: Button border thickness from code behind
body: <p>I am very new to wpf, and right now I am working with buttons, and so I want to change buttons border thickness, but from code behind not in XAML, and what I did was next:</p>
  
  <pre><code>var converter = new System.Windows.Media.BrushConverter();
  var brush = (Brush)converter.ConvertFromString("#83D744");
  btn0.Background = System.Windows.Media.Brushes.Transparent; // This is applied to button
         btn0.BorderThickness = new Thickness(1); //Thickness wont apply to button I dont know why
          btn0.BorderBrush = brush; //This is also applied to button
  </code></pre>