[C#]
dataForm.RegisterEditor("Text", new CustomDataFormTextEditor(dataForm));
public class CustomDataFormTextEditor : DataFormTextEditor
{
public CustomDataFormTextEditor(SfDataForm dataForm) : base(dataForm)
{
}
protected override void OnInitializeView(DataFormItem dataFormItem, Entry view)
{
base.OnInitializeView(dataFormItem, view);
view.TextColor = Color.Black;
view.IsReadOnly = true;
}
} |
[C#]
dataForm.RegisterEditor("Text", new CustomDataFormTextEditor(dataForm));
public class CustomDataFormTextEditor : DataFormTextEditor
{
public CustomDataFormTextEditor(SfDataForm dataForm) : base(dataForm)
{
}
protected override void OnInitializeView(DataFormItem dataFormItem, Entry view)
{
base.OnInitializeView(dataFormItem, view);
view.TextColor = Color.Black;
}
protected override void OnUpdateReadOnly(DataFormItem dataFormItem, Entry view)
{
view.IsReadOnly = dataFormItem.IsReadOnly;
}
} |