110,534
社区成员
发帖
与我相关
我的任务
分享
Binding imgBinding = new Binding();
imgBinding.Source = tbp;
imgBinding.Path = new PropertyPath(tbp.ImgSource);
imgBinding.Mode = BindingMode.OneWay;
//this.Img[i].SetBinding(Img[i].Source,imgBinding);
Img[i].SetBinding(Img[i].Source, imgBinding);
这是用代码绑定总是会报一个 错误 3 与“System.Windows.FrameworkElement.SetBinding(System.Windows.DependencyProperty, string)”最匹配的重载方法具有一些无效参数