Styling a DataForm using xaml

Is it possible to style a DataForm using xaml. The only examples I can find use C#.

Thank you.

3 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 23, 2021 03:40 AM UTC

Hi Robert, 
 
Thank you for using syncfusion products. 
 
#Regarding Styling a DataForm using xaml 
We would like to inform you that you can achieve your requirement with help of setting style in the ResourceDictionary in SfDataForm. Please refer to the following code snippet for your reference. 
 
Code Snippet 
<ContentPage.Resources> 
    <syncTheme:SyncfusionThemeDictionary> 
        <syncTheme:SyncfusionThemeDictionary.MergedDictionaries> 
            <dataForm:SfDataFormStyles /> 
            <ResourceDictionary> 
                <Color x:Key="SfDataFormEditorTextColor">Red</Color> 
                <Color x:Key="SfDataFormLabelTextColor">Green</Color> 
            </ResourceDictionary> 
        </syncTheme:SyncfusionThemeDictionary.MergedDictionaries> 
    </syncTheme:SyncfusionThemeDictionary> 
</ContentPage.Resources> 
 
Please refer to the tested sample in the following link for your reference. 
 
Please let us know if you have any concern. 
 
Regards, 
SaiGanesh Sakthivel 


Marked as answer

RK Robert Kamarowski February 23, 2021 03:12 PM UTC

Thank you.


SS SaiGanesh Sakthivel Syncfusion Team February 24, 2021 11:59 AM UTC

Hi Robert,  
  
Thank you for the update.  
  
We are glad to know that the provided solution is resolved the query. Please let us know if you need any further assistance. 
 
Regards,  
SaiGanesh Sakthivel 


Loader.
Up arrow icon