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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

No property, bindable property, or event found for 'FontSize'

Thread ID:

Created:

Updated:

Platform:

Replies:

123642 Apr 6,2016 08:32 AM UTC Apr 7,2016 11:43 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Paco Gómez
Asked On April 6, 2016 08:32 AM UTC

Hello,

I try to change the font size of the X axys labels, but the XAML compiler returns me this error:

No property, bindable property, or event found for 'FontSize'

Here is my source code:

        <chart:SfChart.PrimaryAxis>
          <chart:CategoryAxis LabelPlacement="BetweenTicks" LabelsIntersectAction="MultipleRows" LabelRotationAngle="90"
                              EnableAutoIntervalOnZooming="False" Interval="1">
            <chart:ChartAxisLabelStyle TextColor="Red">
              <chart:ChartAxisLabelStyle.Font>
                <Font FontSize="20"/>
              </chart:ChartAxisLabelStyle.Font>
            </chart:ChartAxisLabelStyle>
          </chart:CategoryAxis>
        </chart:SfChart.PrimaryAxis>

How can I fix this?

Gobi M [Syncfusion]
Replied On April 7, 2016 11:43 AM UTC

Hi Francisco,


Thanks for using Syncfusion Products.


We have analyzed your query and found that you have missed the <chart:CategoryAxis.LabelStyle> tag in your code. Please find the working code below.


<chart:SfChart.PrimaryAxis>
          <chart:CategoryAxis LabelPlacement="BetweenTicks" LabelsIntersectAction="MultipleRows" LabelRotationAngle="90" EnableAutoIntervalOnZooming="False" Interval="1">

            <chart:CategoryAxis.LabelStyle>
              <chart:ChartAxisLabelStyle TextColor="Red">
              <chart:ChartAxisLabelStyle.Font>
                <Font FontSize="20"/>
              </chart:ChartAxisLabelStyle.Font>
            </chart:ChartAxisLabelStyle>
            </chart:CategoryAxis.LabelStyle>

      </chart:CategoryAxis>

</chart:SfChart.PrimaryAxis> 



Please let us know, if you have any query.


Regards,

Gobi M 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;