실행은 내가 가진 내보기에서내 뷰 모델에서
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}" />
텍스트 상자에 입력하는 동안 항목의 설정 트리거 할 수있는 가능성이 있습니까? 아니면 클래스의 모든 필드에 대해 Property를 작성해야합니까?