I have a textbox which is bound to a property ItemID
like so.
private string _itemID;
public string ItemID {
get { return _itemID; }
set {
_itemID = value;
}
}
The XAML of the text box is as follows:
<TextBox Text="{Binding Path=ItemID, Mode=TwoWay}" Name="txtItemID" />
The problem is, the value of ItemID
does not update immediately as I type,
causing the Add
button to be disabled (command), until I lose focus of the text box by pressing the tab key.