SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

How can I apply my style and template to my axes if I created the axes as NumericAxisViewModel in code and bound them to my SciChartSurface in my xaml view?

Regards,
Roland

Version
5.3.011954
  • You must to post comments
0
0

Hi Roland,

Thanks for your question.
You can apply your Styles to NumericAxisViewModel setting the StyleKey property for it.
Please see our “Manipulate Series in MVVM” Worked Example for more details:
https://www.scichart.com/documentation/v5.x/webframe.html#Worked%20Example%20-%20Manipulate%20Series%20in%20MVVM.html

Hope this helps.

  • You must to post comments
0
0

Hi Oleksandr,

thanks for your answer, I have a custom style applied to my axes via the StyleKey property but how do I add a style for AxisLabelContainerStyle and AxisLabelTemplate to my AxisStyle.

  • You must to post comments
0
0

Hi Roland,

I am sorry for the late reply.
You can create a Style for the Axis, set the Property CursorModifier.AxisLabelContainerStyle to the Value “{StaticResource CursorModAxisLabelStyle}” there and apply this Style using StyleKey.

Hope this helps.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.