var b=new Binding();
b.Source=myobj;
b.Path=new PropertyPath("Text",myParameter);//<-- myParemter is int value
b.Converter=new FollConverter();
control.SetBinding(UserControl.VisibilityProperty,b);
在我的转换器中
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if(parameter!=null) //<-- PROBLEM IS HERE, ALWAYS NULL
}
如何在动态绑定中传输对象?