SfTextInputLayout hide hint section

Hi,

Is there an option to hide section under Entry so only the entry field is visible?

Image_6666_1743780997163

 <Grid
     Grid.Row="4"
     Grid.Column="1"
     ColumnDefinitions="*,auto"
     RowDefinitions="auto"
     RowSpacing="0">
     <sfInputLayout:SfTextInputLayout
         Grid.Column="0"
         Background="Red"
         ContainerBackground="White"
         ContainerType="Outlined"
         InputViewPadding="10,0,0,0"
         Stroke="{StaticResource BorderColor}">
         <Entry Text="Hello" />
     </sfInputLayout:SfTextInputLayout>
     <Image
         Grid.Column="1"
         Margin="10,0,0,0"
         HeightRequest="35"
         Source="misc_search_grey" />
 </Grid>


1 Reply

KP Kamalesh Periyasamy Syncfusion Team April 7, 2025 01:56 PM UTC

Hi Marcin,


Thanks for reaching out to us. We have reviewed your query regarding the space shown below the TextInputLayout control. To hide this space, we suggest setting ReserveSpaceForAssistiveLabels to false. This property is used to allocate space for the helper and error labels. To assist you further, we’ve attached the modified sample below. Kindly check it out and let us know if it resolves your query.

UG Docs: ReserveSpaceForAssistiveLabels

 Code:

<sfInputLayout:SfTextInputLayout

             Grid.Column="0"

             Background="Red"

             ContainerBackground="White"

             ContainerType="Outlined"

             InputViewPadding="10,0,0,0"

             Stroke="LightGray"

             ReserveSpaceForAssistiveLabels="False"

             >

    <Entry Text="Hello" />

</sfInputLayout:SfTextInputLayout>


Regards,

Kamalesh P


Attachment: TextInputLayoutSample_547f5d04.zip

Loader.
Up arrow icon