This commit is contained in:
2023-06-20 15:08:50 +09:00
parent ef297e7653
commit 9d11cb889a
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ namespace DataBindingSample
{
Binding binding = new Binding();
binding.Source = tbxByCodeBehind;
binding.Path = new PropertyPath(tbxByCodeBehind.Text);
binding.Path = new PropertyPath(TextBox.TextProperty);
lblByCodeBehind.SetBinding(Label.ContentProperty, binding);
}
}