I want to set width to dynamically added button background image.
this is my code
Buttob btn=new Button();
ImageBrush brush1 = new ImageBrush();
brush1.ImageSource = new BitmapImage(new Uri("ms-px:///Assets/emptyseat.jpg"));
btn.Background = brush1;
how to set width of the above image dynamically.