Can I bind a WPF control to a field's property?

前端 未结 3 1081
闹比i
闹比i 2020-12-11 18:43

Because I needed to split some functionality between classes, I\'ve arrived at the following situation

xaml code



        
3条回答
  •  囚心锁ツ
    2020-12-11 19:08

    No you cant . Because binding system uses Reflection to find the

    Property in DataContext(i.e your VM)

    It does not look for fields . I hope this will help.

提交回复
热议问题