There\'s no problem if Mode=OneWay, but I have this: Class:
namespace Halt
{
public class ProjectData
{
public static string Username {ge
Use the static property binding syntax (which is, as far as I know, available since WPF 4.5):
No need to set Mode="TwoWay", as that is the default for the TextBox.Text property anyway.
Although not explicitly asked for, you may also want to implement property change notification.
See this answer for how to do it.