title: How to remove the border of a Button in code?
body: <p>I am developing a windows phone 7 application. I am new to windows phone 7 applications. In my application I have created a button control dynamically and added the background image to the button control as follows.</p>
  
  <pre><code>Button AlphabetButton = new Button();
                  AlphabetButton.Content = vAlphabet;
                  ImageBrush brush = new ImageBrush();
                  brush.ImageSource = new BitmapImage(new Uri("button_off.png", UriKind.Relative));
                  //brush.Stretch = Stretch.None;
                  AlphabetButton.Background = brush;
                  AlphabetButton.BorderBrush = new SolidColorBrush(Colors.Gray);
  
                  AlphabetButton.Margin = new Thickness(-12, -27, 0, 0);
                  AlphabetButton.Width = 80;
                  AlphabetButton.Height = 80;     
  </code></pre>
  
  <p>I want to remove the border of the button control because with that border the image does not appear as per requirement. How to do this? Can we do this with the <code>BorderThickness</code> attribute of button control or is there any other way? Can you please provide me any code or link through which I can resolve the above issue? If I am doing anything wrong then please guide me.</p>