Databinding to CLR property in code-behind

前端 未结 5 1338
隐瞒了意图╮
隐瞒了意图╮ 2021-02-15 20:18

Binding to a Dependency Property is easy in code-behind. You just create a new System.Windows.Data.Binding object, and then call the target dependency object\'s

5条回答
  •  日久生厌
    2021-02-15 21:24

    Binding targets MUST be dependency properties! That's the only requirement for databinding to work!

    Read more here:

    • http://msdn.microsoft.com/en-us/library/ms531387(VS.85).aspx
    • http://msdn.microsoft.com/en-us/library/ms752347.aspx

提交回复
热议问题