when you enter the decimal value it becomes 0 again so the best way to do this is using the lostfocus trigger:
Also you need to do this in the view model:
public double Txt
{
get { return txt; }
set
{
if (!txt.Equals(value))
{
txt = value;
OnPropertyChanged("Txt");
}
}
}