Styles in resource dictionary (AxisLine/LabelStyle, TrackballLineStyle etc.)

Hello,
is it possible to set styles from resource dictionary? Fo instance having this in my SfChart:

<NumericalAxis AxisLineStyle="{StaticResource ChartAxisLineStyle}" />

And this in my ResourceDictionary:

<sfc:ChartLineStyle x:Key="ChartAxisLineStyle" StrokeColor="Gray" />

Or this in my ResourceDictionary:

<Style x:Key="ChartAxisLineStyle" TargetType="sfc:ChartLineStyle">
    <Setter Property="StrokeColor" Value="Orange" />
</Style>


I seem to have problems making it work. Thank you!


1 Reply 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team September 6, 2021 11:13 AM UTC

Hi Ondrej Slimak, 
 
We have analyzed your query and currently we didn’t have support for “Explicit support for SfChart elements”. Already we have considered this as a feature request. You can track the status of this feature from below link    
 
   
We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this since we committed with already planned work. So, this feature will be available for any of our upcoming releases  
          
Please cast your vote to make it counts and If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.   

Regards, 
Yuvaraj 


Marked as answer
Loader.
Up arrow icon