|
Do you plan to support Right to Left on DataForm ? |
We have logged this feature in our side and You can track the progress of the reported feature from the below link.
The feature will be available in our upcoming 2018 Vol2 release. |
|
Is it possible to move the label to the right?
|
SfDataForm don’t have support for setting LabelPosition is Right. Could you please let us know the specific purpose for setting LabelPosition is Right. Because, it will be included in RTL(Right to Left) support of SfDataForm. |
|
Do you plan to support MaskedEdit in DataForm ? |
We have logged this feature in our side and You can track the progress of the reported feature from the below link.
The feature will be available in our upcoming 2018 Vol2 release. |
|
Xamarin.Android
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(MyEntry), typeof(MyEntryRenderer))]
namespace GettingStarted
{
public class MyEntryRenderer : EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (e.NewElement != null && this.Control != null)
{
this.Control.Gravity = Android.Views.GravityFlags.Right;
}
}
}
}
Xamarin.iOS
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(MyEntry), typeof(MyEntryRenderer))]
namespace GettingStarted
{
public class MyEntryRenderer : EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (e.NewElement != null && this.Control != null)
{
this.Control.TextAlignment = UITextAlignment.Right;
}
}
}
}
Xamarin.UWP
using Xamarin.Forms.Platform.UWP;
[assembly: ExportRenderer(typeof(MyEntry), typeof(MyEntryRenderer))]
namespace GettingStarted
{
public class MyEntryRenderer : EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (e.NewElement != null && this.Control != null)
this.Control.FlowDirection = Windows.UI.Xaml.FlowDirection.RightToLeft;
}
}
}
Xamarin.Forms
public MainPage()
{
InitializeComponent();
var expenseInfo = new ExpenseInfo();
// CustomEditor Registration
dataForm.RegisterEditor("Hebrew", new CustomEditor(dataForm));
dataForm.RegisterEditor("Name", "Hebrew");
dataForm.DataObject = expenseInfo;
}
public class CustomEditor : DataFormEditor<MyEntry>
{
public CustomEditor(SfDataForm dataForm) : base(dataForm)
{
}
protected override void OnInitializeView(DataFormItem dataFormItem, MyEntry view)
{
view.Text = "Items";
}
protected override MyEntry OnCreateEditorView()
{
return new MyEntry();
}
}
public class MyEntry : Entry
{
/// <summary>
/// Initializes a new instance of the <see cref="SfEntry"/> class.
/// </summary>
public MyEntry()
{
}
} |