diff --git a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs index 6ea9faecdcff..b992f4bf9c39 100644 --- a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs +++ b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs @@ -90,7 +90,6 @@ private protected override void OnLoaded() partial void InitializePropertiesPartial() { OnImeOptionsChanged(ImeOptions); - OnVerticalContentAlignmentChanged(VerticalAlignment.Center, VerticalContentAlignment); } private void UpdateTextBoxView() diff --git a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.iOS.cs b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.iOS.cs index 8993dbd6289f..7aef69a11482 100644 --- a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.iOS.cs +++ b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.iOS.cs @@ -27,7 +27,6 @@ partial void InitializePropertiesPartial() OnTextAlignmentChanged(CreateInitialValueChangerEventArgs(TextAlignmentProperty, null, TextAlignment)); OnReturnKeyTypeChanged(ReturnKeyType); OnKeyboardAppearanceChanged(KeyboardAppearance); - OnVerticalContentAlignmentChanged(GetDefaultVerticalContentAlignment(), VerticalContentAlignment); } partial void OnFocusStateChangedPartial(FocusState focusState) @@ -325,10 +324,5 @@ private void OnKeyboardAppearanceChanged(UIKeyboardAppearance newValue) } #endregion - - private VerticalAlignment GetDefaultVerticalContentAlignment() => - AcceptsReturn || TextWrapping != TextWrapping.NoWrap - ? VerticalAlignment.Top - : VerticalAlignment.Center; } } diff --git a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.macOS.cs b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.macOS.cs index 5fa5d10c4f27..4cb6c8b65d06 100644 --- a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.macOS.cs +++ b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.macOS.cs @@ -30,7 +30,6 @@ protected TextBox(bool isPassword) partial void InitializePropertiesPartial() { OnTextAlignmentChanged(CreateInitialValueChangerEventArgs(TextAlignmentProperty, null, TextAlignment)); - OnVerticalContentAlignmentChanged(VerticalAlignment.Top, VerticalContentAlignment); } partial void OnFocusStateChangedPartial(FocusState focusState)