绑定到 UWP 中的转换器

Binding to a converter in UWP

我想知道在 UWP 中是否可以像这样绑定到转换器:

{Binding Path=Value, Converter={Binding ElementName=control, Path=Converter, Mode=OneWay}, Mode=TwoWay}" 

我需要一个 UserControl,消费者可以根据自己的需要在上面设置 Converter 属性。上面的绑定表达式对我不起作用,但我不确定是因为我做错了什么还是因为框架不支持它。

Binding.Converter is regular property not a DependencyProperty thus binding won't work here. Like MSDN says:

A binding target. This is a DependencyProperty of the FrameworkElement in your UI that displays the data.

有关 数据绑定的更多信息 您会发现 at MSDN