Are “{Binding Path=.}” and “{Binding}” really equal

后端 未结 4 1423
夕颜
夕颜 2020-11-28 08:44

In my WPF project, I have a ListBox that displays items from a List collection. I wanted to make the text of these items editable, so I wrapped ea

4条回答
  •  遥遥无期
    2020-11-28 09:07

    The documentation states that {Binding} is equivalent to {Binding Path=.}. However it is not equivalent to {Binding Path} as you have typed. If you include the Path property, you must assign it to something, be it Path=. or Path=OtherProperty.

提交回复
热议问题