Text entry that is set for password is returning asterix instead of text in maui

Phunction 301 Reputation points
2025-02-25T19:10:37.9533333+00:00

In .net Maui, I have this field: <Entry x:Name="Password" WidthRequest="200" IsPassword="True" /> However, when I try to access the text of the field with Password.Text, all I get are Asterix's *** and a letter, for example if I enter test as the value, Password.Text gives me ***t

What is going on here?

update

Nevermind, it appears when I use a remote desktop session, the text is entered weirdly.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,955 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,916 Reputation points Microsoft Vendor
    2025-02-26T03:23:46.52+00:00

    Hello,

    it appears when I use a remote desktop session

    It means that you are testing on iOS platform.

    for example if I enter test as the value, Password.Text gives me ***t

    It's the default behavior on iOS platform.

    You got asterix because you set IsPassword to True.

    Entry provides the IsPassword property which visually obscures entered text when it's set to true

    Please see Obscure text entry

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.