[SOLVED] Button Content should be center

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
h82258652
Posts: 12
Joined: Fri Jun 12, 2015 6:23 pm

[SOLVED] Button Content should be center

Postby h82258652 » Fri Jun 12, 2015 6:28 pm

QQ截图20150613102617.png
QQ截图20150613102617.png (39.61 KiB) Viewed 796 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.

JS-Support
Site Admin
Posts: 739
Joined: Tue Apr 08, 2014 3:42 pm

Re: [Bug]Button Content should be center

Postby JS-Support » Mon Jun 15, 2015 9:05 am

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

JS-Support
Site Admin
Posts: 739
Joined: Tue Apr 08, 2014 3:42 pm

Re: [Bug]Button Content should be center

Postby JS-Support » Sat Mar 04, 2017 6:30 pm

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests

 

 

cron