xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

HorizontalTextAlignment property does not work #2850

Closed acaliaro closed 6 years ago

acaliaro commented 6 years ago

Description

HorizontalTextAlignment property does not work

Steps to Reproduce

        Entry entryQuantita = new Entry() { FontSize = 120, FontAttributes = FontAttributes.Bold, HorizontalTextAlignment = TextAlignment.Center, Keyboard = Keyboard.Numeric };

add this entry to a StackLayout. Alignment is left, not center

Expected Behavior

Entry center Aligned

Actual Behavior

Entry left Aligned

Basic Information

Screenshots

image

Reproduction Link

PureWeen commented 6 years ago

duplicate https://github.com/xamarin/Xamarin.Forms/issues/2167

thudugala commented 6 years ago

Issue still exist in 3.0.0.530893

thudugala commented 6 years ago

It Works now. Tested on 3.0.0.550146 (rebuild after deleting bin and obj folders)