2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
You can raise the dataform editor touch event by adding custom editor when dataform has read/write access.
This article explains to raise the touch event of dataform custom editor and showing a pop up on touch recognized when dataform is read only.
Here, the ContactNumber data field is used as custom editor.
By passing custom view in DataFormEditor class, you can add custom editor in dataform. Refer to this DataForm user guide documentation for creating a new custom editor.
Here, the View is loaded for custom entry editor.
Refer to the following code example for binding the DataObject, setting dataform as read only and adding custom editor as Entry editor using the RegisterEditor method in dataform.
This article explains custom renderer in DataForm for Xamarin.Forms.Android and Xamarin.Forms.iOS platform alone.
In Android Renderer:
Here LinearLayout is loaded as native control in which EditText and SfPopupLayout is added to render the custom editor in dataform.
And touch gesture for custom dataform editor is recognized by raising the Touch event of the EditText.
In iOS Renderer:
Here UIView is loaded as native control in which UIButton and SfPopupLayout is added as sub views to render the custom editor.
And touch gesture for custom dataform editor is recognized by raising the TouchDown event of the UIButton.
Sample Demo: EditorTouchEvent
|
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.