We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

The Entry controls in programs using the UWP Xamarin.Forms version of SfDataForm do not look correct

1. Create a ContentPage in a UWP Xamarin.Forms program.
2. Add an SfDataForm to the page that will include a text field.
3. Add an Entry control to the page.
4. Run the program.

The Entry field in the SfDataForm does not look the same as the one that is not in the SfDataForm. It is taller, so the typed in text is not vertically centered.

This is using the latest release versions of the NuGet packages.

3 Replies

JN Jayaleshwari N Syncfusion Team January 29, 2019 06:19 AM

Hi Chris, 
We have checked your query regarding Entry field in the SfDataForm does not look correct in the SfDataForm Xamarin Forms UWP.  In SfDataForm by default we have assigned height to the editor in the source. Thus, the text is not vertically centered based on the given height. Even for Entry, if you set this height, it will also look like the text editor in SfDataForm. However, if your requirement is to align text in vertical center, it can be achieved using custom editor. Kindly refer online user guide documentation for creating custom editor. 
In the custom entry renderer for UWP, set the vertical alignment for the control as center.   
    [assembly: ExportRenderer(typeof(CustomEntry), typeof(CustomEntryRenderer))]  
    public class CustomEntryRenderer : EntryRenderer  
        protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)  
            if (Control != null)  
               Control.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Center;  
We have attached the sample for your reference and you can download the same from the following location.  
Sample link: DataFormSampleDemo  
If the provided solution doesn’t meet your requirement, please revert us with more information regarding your query along with screenshots if possible so that we could analyze on it and provide you with the better solution. 
Jayaleshwari N. 

CM Chris Marinacci January 29, 2019 06:36 PM

Hi Jayaleshwari,

That solution works perfectly.



JN Jayaleshwari N Syncfusion Team January 30, 2019 12:58 AM

Hi Chris, 
Thanks for the update. Please get in touch if you would require further assistance. 
Jayaleshwari N. 

Live Chat Icon For mobile
Up arrow icon