As I resize the web-browser window, the button changes its size too.
If I set a specific width and height, button doesn't resize, so problem is probably with default width and height (auto).
Same issue is with central alignment:
<Button Content="AAA" HorizontalAlignment="Center" VerticalAlignment="Center"/>
Also, it looks like a problem only with button, a check-box or a border do not experience this issue.
I have only a button:
As I resize the web-browser window, the button changes its size too. If I set a specific width and height, button doesn't resize, so problem is probably with default width and height (auto). Same issue is with central alignment:
<Button Content="AAA" HorizontalAlignment="Center" VerticalAlignment="Center"/>
Also, it looks like a problem only with button, a check-box or a border do not experience this issue.