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
- Roland D asked 5 years ago
- last edited 5 years ago
- You must login to post comments
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.
- Oleksandr Shvets answered 5 years ago
-
Interesting
- You must login to post comments
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.
- Roland D answered 5 years ago
- You must login to post comments
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.
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
Please login first to submit.