- Home
- Forum
- Xamarin.Forms
- Hide password last character
Hide password last character
Hi,
I use an Entry inside a SfTextInputLayout to write a password.
My code :
<sfinputlayout:SfTextInputLayout
Grid.Row="2"
Margin="5"
ContainerType="Outlined"
EnablePasswordVisibilityToggle="False"
Hint="Mot de passe"
OutlineCornerRadius="8">
<sfinputlayout:SfTextInputLayout.HintLabelStyle>
<sfinputlayout:LabelStyle
FontFamily="{StaticResource Font-RobotoCondensed-Regular}"
FontSize="18" />
</sfinputlayout:SfTextInputLayout.HintLabelStyle>
<Entry
x:Name="PasswordEntry"
Completed="PasswordEntry_Completed"
FontFamily="{StaticResource Font-RobotoCondensed-Regular}"
FontSize="18"
IsPassword="True"
ReturnType="Done"
Text="{Binding Password}" />
</sfinputlayout:SfTextInputLayout>
The password is hidden by dots but my problem is that the the last character written is hidden after a delay. I want no delay.
Do you know how to do that (without custom renderer) ?
Thank you.
SIGN IN To post a reply.
8 Replies
1 reply marked as answer
SS
Sridevi Sivakumar
Syncfusion Team
March 18, 2021 12:34 PM UTC
Hi Nelissen Benoît,
Greetings from Syncfusion.
We have checked the reported problem in Entry and able to reproduce the reported problem. And we are not getting any solution to remove this delay.
So, we have suggested Syncfusion SfMaskedEdit control to resolve this problem. In this control, we can set the password character, enable and disable the password delay and change the password delay duration.
Code snippet:
Greetings from Syncfusion.
We have checked the reported problem in Entry and able to reproduce the reported problem. And we are not getting any solution to remove this delay.
So, we have suggested Syncfusion SfMaskedEdit control to resolve this problem. In this control, we can set the password character, enable and disable the password delay and change the password delay duration.
Code snippet:
|
<sfinputlayout:SfTextInputLayout
Grid.Row="2"
Margin="5"
ContainerType="Outlined"
EnablePasswordVisibilityToggle="False"
Hint="Mot de passe"
OutlineCornerRadius="8">
<syncfusion:SfMaskedEdit x:Name="maskedEdit" Mask="\w+" MaskType="RegEx" PasswordChar="*" />
</sfinputlayout:SfTextInputLayout> |
Refer below link to get the more detail about SfMaskedEdit
https://help.syncfusion.com/xamarin/masked-entry/getting-started
For more information about masked edit password character
https://help.syncfusion.com/xamarin/masked-entry/show-password-character
Let us know if you need any further assistance.
Regards,
Sridevi S.
NB
Nelissen Benoît
March 19, 2021 07:34 AM UTC
Hi,
Thanks for the suggestion.
I tried to replace Entry with SfMaskedEdit like this :
<sfinputlayout:SfTextInputLayout
Grid.Row="2"
Margin="5"
ContainerType="Outlined"
EnablePasswordVisibilityToggle="False"
Hint="Mot de passe"
OutlineCornerRadius="8">
<sfinputlayout:SfTextInputLayout.HintLabelStyle>
<sfinputlayout:LabelStyle
FontFamily="{StaticResource Font-RobotoCondensed-Regular}"
FontSize="18" />
</sfinputlayout:SfTextInputLayout.HintLabelStyle>
<sfmaskededit:SfMaskedEdit
x:Name="PasswordEntry"
Completed="PasswordEntry_Completed"
EnablePasswordDelay="False"
FontFamily="{StaticResource Font-RobotoCondensed-Regular}"
FontSize="18"
Mask="[a-z0-9A-Z@_#*()-/$!]*"
MaskType="RegEx"
PasswordChar="*"
ReturnType="Done"
Value="{Binding Password}" />
</sfinputlayout:SfTextInputLayout>
It's ok when I press my button OK, I have Value binded in my Password property. But with the Completed event, Value is null.
NB
Nelissen Benoît
March 19, 2021 07:45 AM UTC
In facts, It doesn't work well.
I tried to put a dot in password character • (unicode U+2022) and the value returned is ••••••. And when I try to go back to * password character, I have ******* in value returned.
And also the first time I press my button, value is null, second time it's ******.
ET
Eswaran Thirugnanasambandam
Syncfusion Team
March 24, 2021 02:48 AM UTC
Hi Nelissen Benoît,
Thanks for your update.
Query 1: Value property returns password character instead of typed text in the view model while binding the value property.
We checked the reported issue, and we are able to reproduce the issue from our side. We have logged a bug report for this issue, and you can keep track of the bug from the feedback portal below.
The provided feedback link is private, and you need to login to view this feedback.
we will include the fix in the upcoming volume 1 release which is expected to be released on last week of March 2021.
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.
Query 2: In the completed event the value is obtained as null.
We are currently validating the reported issue and we will provide further details on March 25, 2021.
Regards,
Eswaran
ET
Eswaran Thirugnanasambandam
Syncfusion Team
March 25, 2021 06:22 AM UTC
Hi Nelissen Benoît,
Thanks for your patience.
Query: In the completed event the value is obtained as null.
We checked the reported issue “In the completed event the value is obtained as null” and we have already fixed the reported issue internally. The fix will be available in the upcoming Volume-1 2021 release, which will be expected on last week of March.
Regards,
Eswaran
ET
Eswaran Thirugnanasambandam
Syncfusion Team
April 1, 2021 09:41 AM UTC
Hi Nelissen Benoît,
We have fixed both the reported issues “Value property returns password character instead of typed text in the view model while binding the value property" and “In the completed event the value is obtained as null.” and the fix is included in our Volume 1 Main release. We are glad to announce that our Essential Studio 2021 Volume 1 Main release v19.1.0.54 is rolled out and is available for download under the following link.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Eswaran
Marked as answer
NB
Nelissen Benoît
April 1, 2021 10:06 AM UTC
Hi,
It works. Thank you.
RS
Ramya Soundar Rajan
Syncfusion Team
April 2, 2021 09:32 AM UTC
Hi Nelissen Benoît,
Thanks for your update.
Please get in touch with us if you would require any further assistance
Regards,
Ramya S
SIGN IN To post a reply.
- 8 Replies
- 4 Participants
- Marked answer
-
NB Nelissen Benoît
- Mar 17, 2021 10:51 AM UTC
- Apr 2, 2021 09:32 AM UTC