【发布时间】:2023-02-14 01:09:35
【问题描述】:
我有 ObservableCollection<ObservableCollection<string>>,我正在尝试将每个字符串绑定到。
这是我试过的。
txtBlock = new TextBox();
Binding txtBind = new Binding();
txtBind.Source = exportData;
txtBind.Path = new PropertyPath("exportData", i, j);
//txtBlock.Text = exportData[i][j];
BindingOperations.SetBinding(txtBlock, TextBlock.TextProperty, txtBind);
它没有填充文本框。
【问题讨论】: