WPF CommandParameter MultiBinding values null

后端 未结 1 385
我在风中等你
我在风中等你 2021-01-18 01:25

I am simply trying to bind two controls as command parameters and pass them into my command as an object[].

XAML:



        
相关标签:
1条回答
  • 2021-01-18 01:54

    This'll do it:

    public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
    {
        return values.ToArray();
    }
    

    Take a look at this question for the explanation.

    0 讨论(0)
提交回复
热议问题