Use the static property binding syntax (which, as far as I know, is available with WPF 4.5):
<TextBox Text="{Binding Path=(engine:ProjectData.Username)}"/>
No need to set Mode="TwoWay" , as this is the default for the TextBox.Text property.
Although this is not explicitly specified, you can also notify you of a property change.
For more on how to do this, see this answer .
source share