私のViewModelには次のものがあります:
private MyType item;
public MyType Item
{
get { return item; }
set {
if(item == null)
return;
item = value;
OnPropertyChanged(()=>Item);
}
}
私からしてみれば:
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Path=Item.Name, UpdateSourceTrigger=PropertyChanged}" />
テキストボックスに入力中にアイテムのセットをトリガーする可能性はありますか? または、クラスのすべてのフィールドにプロパティを作成する必要がありますか?