0

When I set a background to a button it does not cover the entire button. There is some offset or padding with background and button. How do I make the background cover entire Button?

<Button.Background >
   <ImageBrush  x:Name="LoginImg" source="fv.img" ></ImageBrush>
</Button.Background>
Shilpa
  • 412
  • 3
  • 14

1 Answers1

0

You should get into button's style. Or, probably, the easiest way (just workaround) is to use negative padding.

Community
  • 1
  • 1
Vitalii Vasylenko
  • 4,776
  • 5
  • 40
  • 64