Hi Judi Smith,
Greetings from Syncfusion.
Query: Is there a way to set the HasError property of the SfTextInputLayout control on exit based on the child Entry control having a text.length of 0.
Yes, if text length goes to 0, we can change the HasError value in entry TextChanged evnt.
[C#]
private void Entry_TextChanged(object sender, TextChangedEventArgs e)
{
textinput.HasError = (e.NewTextValue.Length == 0) ? true : false;
} |
Query: Set the HasError property when SfComboBox control having no selection
We have modified the HasError property in the SComboBox SelectionChanged event when the count of selected items is 0 in the SfComboBox .
[C#]
private void SfComboBox_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e)
{
textinput2.HasError = ((comboBox.SelectedItem as ObservableCollection<object>).Count == 0) ? true : false;
} |