以下代码:
<TextBlock Name="foo"></TextBlock>
<Label Target="foo">_Delta pressure</Label>
生成以下设计时错误:
Error 1 Value 'foo' cannot be assigned to property 'Target'. Property 'Target' of type 'UIElement' cannot be specified as a string. C:\Programming\WpfCustomPlot\SPT.Olga.Plot.Custom\PumpCurves\View\RatedValuesView.xaml 65 45 SPT.Olga.Plot.Custom
并且出现以下运行时错误:'UIElement' type does not have a public TypeConverter class. Error at Line 65 Position 45.
我做错了什么?