Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Exiting XamTextEditor loses value
posted

Hi 

Recently I upgraded from version 12.1 to version 13.1. I have found issues in the 13.1 version XamTextEditor Control.

The text box control is null when you hit enter key or change focus by hitting tab or clicking out.

In the xaml I have written something like

<igEditors:XamTextEditor
x:Name="txtTransactionName"

Value="{Binding Path=TransactionName, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"

Validation.ErrorTemplate="{x:Null}">
</igEditors:XamTextEditor>

and I have the TransactionName property created as follows

public string TransactionName
{
get { return this.TransactionName; }
set
{
if (value != this.TransactionName)
{
this.Instance.TransactionName = value;
this.OnPropertyChanged("TransactionName");
}
}
}

I noticed that when I exit the field the setter is called again with value null which clears out whatever you typed in the box and validation fails. 

This was never a problem before. 

Looking forward to hear from you.

Thank you.