Header and Error Message Styling

I'm trying to set the FontFamily for an entry field's header and the error message that is displayed. I've tried setting this for the header in the GenerateViewForLabel function for the DataFormLayoutManager, but it isn't affecting the font. I don't know how to set this for the error messages. Also unable to get the text in the entry field to be vertically centered. I am able to get the placeholder text to be vertically centered. The entry field is using an extended DataFormLayoutManager, custom editor, custom renderer for UWP and a customized style. I have tried modifying the VerticalContentAligment where I can, but it's not altering the typed text.

Is there a way to set the focus to an editor field when the page is created?

2 Replies

VR Vigneshkumar Ramasamy Syncfusion Team July 11, 2018 08:46 AM UTC

Hi Teal, 

We have checked your query and please find the response follows.  
  
Regarding query with Font Style Label customization not working.  
  
We have checked the reported scenario and we are able to reproduce the issue with label font style customization not working in Xamarin.Forms.UWP platform and logged the issue report for the same. We will include the fix for this issue in our 2018 Vol2 SP1 release while is expected to release by end of July. 
   
Regarding query with set the focus to an editor field when the page is created.  
  
You can set the Entry focus on page loading by changing the FocusState to Programmatic in custom EntryRenderer.  
   
Code example.  
  
[C#]  
        private void Control_Loaded(object sender, RoutedEventArgs e)  
                {   
            Control.Focus(FocusState.Programmatic);  
        }  
 
  
Regarding query with Vertical Alignment for entry.  
  
You can achieve your requirement by changing the value of VerticalAlignment and VerticalContentAlignment to centre in custom EntryRenderer.  
  
We have prepared a sample based on your requirement and please find the sample from below location.  
  
   
Regarding query with data form error message customization.  
  
We have already considered the feature request to provide the support for error message customization in SfDataForm and it will be implement in any of our upcoming releases.  
 
Regards 
Vigneshkumar R 



SG Swathi Gopal Syncfusion Team December 18, 2018 09:50 AM UTC

Hi Teal, 
 
Regarding query with data form error message customization: 
 
We are glad to announce that our Essential Studio 2018 Volume 4 Release v16.4.0.42 is rolled out and is available for download under the following link. 
  
  
Support to customize the validation message view using ValidationTemplate has been provided in SfDataForm and included in this release. Kindly find the simple sample for the provided support below, 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards, 
Swathi G 


Loader.
Up arrow icon