1
假設我有實體圖形像實體造影綁定不在深層次合作
人物 - >學生
然後在XAML中,我有以下一種結合的(人是VM的屬性):
<TextBox Text="{Binding People.Name, Mode=TwoWay}" />
<TextBox Text="{Binding People.Student.StudentNo, Mode=TwoWay}" /> <!-- this bounding is not working -->
在VM中,實現IEditableObject。我有這樣一些代碼:
public void BeginEdit()
{
((IEditableObject)this.People).BeginEdit();
((IEditableObject)this.People.Student).BeginEdit(); //this code not working
//....
}
當乳寧的應用程序,一定會對人們的所有數據是好的。
綁定到學生的所有數據都不起作用。
如何解決?