Я полагаю, у вас есть тот же старый
private Authentication authentication;
public MainPage()
{
InitializeComponent();
this.authentication = new Authentication();
this.DataContext = authentication;
}
void btnAuthenticate_Click(object src, EventArgs e)
{
authentication.Authenticate();
}
и
public class Authentication
{
private string properties = new Properties();
public string Properties
{
get
{
return properties;
}
set
{
properties = value;
NotifyPropertyChanged("Properties");
}
}
void Authenticate()
{
Properties.ErrorStatus = "Access Denied";
}
}
нормальный xaml должен быть
<TextBlock Text="{Binding Path=Properties.ErrorStatus}" />
но иногда вы меняете экземпляр свойств.
так что если это не сработает, вы можете попробовать этот xaml
<Border DataContext="{Binding Properties}">
<TextBlock Text="{Binding Path=ErrorStatus}" />
</Border>