Answer the question
In order to leave comments, you need to log in
Why is the bound context not updating?
I have a context-bound textbox
<TextBox Text="{Binding Path=LeftTeam.TeamCounter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
public View _view = new View();
public MainWindow()
{
InitializeComponent();
DataContext = _view;
_view.LeftTeam.TeamCounter = 7;//изменения видно
}
private void LeftTeamMinusOneCount(object sender, RoutedEventArgs e)
{
_view.LeftTeam.TeamCounter = 9;//изменения НЕ видно
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question