The logic is two way bind Textbox's Text in the viewModel and to implement some function based on the Text change in the viewModel.
But when deleting all the text, there is a data binding error and the following functions depending on the Text change never begin. Text is bind to an int value. It looks like when binding failsimageQuantity = value, the following codes did not get called. Any ideas how to work around this?
public int ImageQuantity
{
get { return imageQuantity; }
set
{
imageQuantity = value;
if (ImageQuantity > 0)
{
if (!String.IsNullOrEmpty(LastSymbol))
{
ImageAmount = ImageQuantity * (QQ.Ask + QQ.Bid) * 0.5;
}
OnPropertyChanged(() => this.ImageQuantity);
}
else
{
ImageAmount = 0.0;
}
}
Edit:One way to fix this is to go back to implement TextChangedevent Command with prism.