We would like to inform you that the reported query that “Placeholder is placed at the center of SfTextInputLayout” is not Editor’s placeholder. That is the Hint text of SfTextInputLayout. The default behaviour of SfTextInputLayout, while applying the Hint text that will be placed at center while focusing that, it will be floated and placed at the top of the control.
SfTextInputLayout value of Hint property is placed at the center, not the Editor placeholder text. You can achieve this requirement by enabling IsHintAlwaysFloated property as per in below snippet.
[XAML]
|
<inputLayout:SfTextInputLayout IsHintAlwaysFloated="True" Hint="Description"
ContainerBackgroundColor="White" ContainerType="Outlined"
FocusedColor="Red" OutlineCornerRadius="4" WidthRequest="366" >
…
</inputLayout:SfTextInputLayout> |
You can also customize the hint label settings by using HintLabelStyle as per in below code snippet.
|
<inputLayout:SfTextInputLayout.HintLabelStyle>
<inputLayout:LabelStyle FontSize="16"
…
/>
</inputLayout:SfTextInputLayout.HintLabelStyle> |
Regards,
Ramya S