Hi,
I'm using the SfDataForm control and I want to create a custom editor with .SfTextInputLayout.
However, I always get a NullReferenceException when I try to show the editor.
I have created two other editors based on SfRating and SfComboBox before and they are working fine.
This is some basic code I'm using to show the input:
public class DataFormVideoEditor : DataFormEditor<SfTextInputLayout>
{
public DataFormVideoEditor(SfDataForm dataForm) : base(dataForm)
{
}
protected override SfTextInputLayout OnCreateEditorView(DataFormItem dataFormItem)
{
SfTextInputLayout inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Name";
inputLayout.EnablePasswordVisibilityToggle = true;
inputLayout.InputView = new Entry() { Text = "John" };
return inputLayout;
}
}
Why does the application crash when I use the SfTextInputLayout?
Do I do something wrong or is the control not supported?
Thanks,
Tamara