binding to a property of an object

后端 未结 2 713
忘了有多久
忘了有多久 2020-12-16 14:05

I want to bind a series of TextBoxes in a grid into properties of an object which is itself another property in my ViewMod

2条回答
  •  再見小時候
    2020-12-16 14:43

    Try this:

    
    
    

    Essentially, you can drill down into properties by using the . separator.

    For future reference, if you want to drill down into collections, you can use MyCollection[x] just like you would in code (where x would be replaced by a hard-coded number, not a variable).

提交回复
热议问题