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?
Consider adding
OnPropertyChanged()with specific parameter in thesetblock ofMyType's "Name" property which notifies about entire object change, not "Name" only.