Why don't characters appear in my WPF text box?

I have an application that includes a DLL written in WPF. This application starts from the login window (the application is a Windows Form, and the DLL is in WPF). When I type a username or password, I cannot see the characters in the text field, but they are stored in property Text1 of both the text field and the password, as expected.

What can explain this behavior and how can I fix it to see the characters when they were printed?

+3
source share
3 answers

Maybe this is the foreground color that matches the background color? If you try to select text after entering, will you get something?

0
source

, ... , , , , - ...

0

I saw this in your scenario: when a WPF window is hosted in a Windows Form application.

You need to run the WPF window in a separate thread to avoid this problem.

0
source

Source: https://habr.com/ru/post/1789490/


All Articles