Page 1 of 1

[SOLVED] Button Content should be center

Posted: Fri Jun 12, 2015 6:28 pm
by h82258652
QQ截图20150613102617.png
QQ截图20150613102617.png (39.61 KiB) Viewed 5856 times

We can see the button content is not the center of the button.
And sorry for my terrible english, my mother language is not english.

Re: [Bug]Button Content should be center

Posted: Mon Jun 15, 2015 9:05 am
by JS-Support @Userware
Thanks a lot for the details bug report.

We are aware of this issue and are planning to fix it with the support of ControlTemplates in one of the upcoming beta updates. At the moment, the "Button" control can contain any visual child, but there is no notion of "HorizontalContentAlignment" and "VerticalContentAlignment". The content alignment is currently always "Stretch", which results in the text being top aligned as if it was in a stretched TextBlock.

Stay tuned.

Thanks again.
Regards,
JS-Support

Re: [Bug]Button Content should be center

Posted: Sat Mar 04, 2017 6:30 pm
by JS-Support @Userware
Hi,

Just to inform you that this issue was fixed in Beta 8 and newer, a long time ago.

The properties "HorizontalContentAlignment" and "VerticalContentAlignment" are available.

The latest version can be downloaded from:
http://forums.cshtml5.com/viewforum.php?f=6

Thanks.
Regards,
JS-Support