I’m doing all crazy stuff today 😀 I tried invoking it by
Dispatcher.BeginInvoke(() =>
{
username = UsernameInput.Text;
});
But that does not seem to work 🙁 And how do I also set a value cross thread?
Problem solved by sleeping the thread for a second after Dispather. Guess you have to allow the gui thread to “answer” the other thread.