Pre loader

How to apply CursorModifier AxisLabelContainerStyle and AxisLabelTemplate if axes were created in mvvm code

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.