In my ViewModel I have:
private MyType item;
public MyType Item
{
get { return item; }
set {
if(item == null)
return;
item = value;
OnPropertyChanged(()=>Item);
}
}
In my view:
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Path=Item.Name, UpdateSourceTrigger=PropertyChanged}" />
Is there any possibility to to trigger set of Item while typing in textbox? Or I should create Property for every field of class?
What you have done is to notify only when the address of MyType changes not the property with in this type. So if you need the changes to be notified with in a property in a type then those properties should explicitly throw onpropertychanged event.