WPF Simple Binding to INotifyPropertyChanged Object
问题 I've created the simplest binding. A textbox bound to an object in the code behind. Event though - the textbox remains empty. The window's DataContext is set, and the binding path is present. Can you say what's wrong? XAML <Window x:Class="Anecdotes.SimpleBinding" x:Name="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="SimpleBinding" Height="300" Width="300" DataContext="MainWindow"> <Grid> <TextBox