Pre loader

Apply style in xaml to ChartModifiers that are created in code



I have created some ChartModifiers in a ModifierGroup in my ViewModel class (using Caliburn.Micro as MVVM framework, not code behind) and bound the group to my SciChartSurface in xaml. Now I want to apply some styles to my modfiers in xaml. Just creating styles with the specific target types don’t work so how do I do this?

  • You must to post comments

Hi there!

Thank for your inquiry. I am sorry for the late reply.
You can use Implicit Styles for ChartModifiers set in the ViewModel class. You will only need to set TargetType in the Style declaration.
Please find the example project attached.

Hope this helps.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies