We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Floating Hint Font Size

Is it possible to change the font size of the hint label when it is floating?

<inputLayout:SfTextInputLayout Hint="Name"
           ContainerType="Outlined"
           IsHintAlwaysFloated="True">
    <Entry />
    <inputLayout:SfTextInputLayout.HintLabelStyle>
        <inputLayout:LabelStyle TextColor="Green" FontSize="20" />
    </inputLayout:SfTextInputLayout.HintLabelStyle>
</inputLayout:SfTextInputLayout>

FontSize seems to have no effect here.


2 Replies

VV Vijayakumar Viswanathan Syncfusion Team March 28, 2023 04:58 AM UTC

Hi Ben,

Query: Is it possible to change the font size of the hint label when it is floating?

Currently, we do not have support for changing the font size of the hint label when it is floating. So we have created a new feature request "Provide support for customizing the font size of the floating hint label". Please find the below link for tracking the status of the feature implementation. 

Feedback link: https://www.syncfusion.com/feedback/42398/provide-support-for-customizing-the-font-size-of-the-floating-hint-label

 

We will include this support in the 2023 Volume 1 SP Release tentatively at the end of April/2023. We appreciate your patience until then.
 

If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal. We will share the release details in the feedback itself.


Regards,

Vijayakumar V



HC Hariharan Chokkalingam Syncfusion Team November 25, 2024 01:59 PM UTC

Hi Ben,

 

We would like to inform you that whenever you set the FontSize for the HintLabelStyle, it will apply to both the hint and the floating hint. When the hint floats, its size is reduced by a specific ratio.

 

Currently, we do not have support for independently changing the font size of the floating hint. You can track this feature request through the provided feedback link.

 

As a workaround, you can achieve the desired behavior by setting styles separately for the hint label when it is floating and when it is not. This can be done using a behavior class. We have attached a sample project that demonstrates this workaround. Please refer to it for further details.

 

Let us know if the suggested workaround resolves your query. Feel free to contact us if you have any additional concerns or questions.

 

Best regards,

Hariharan

 


Attachment: MauiTextInputLayout_53c99777.zip

Loader.
Up arrow icon