I have a textbox in WPF which looks like this:
<TextBox x:Name="EmployeeIdTextBox" TextWrapping="Wrap" IsEnabled="False" Margin="5,5,10,5" Grid.Row="0" Grid.Column="1"
Text="{Binding
ElementName=_selectedEmployee,
Path=Id,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" />
And the binding source looks like this:
private Employee _selectedEmployee = Employee.GetEmployees();
I researched on the internet to find a solution to make the textbox update if object changes and vice versa, but my problem is that no change happens. What am i missing here?