Pre loader

How can I change the stroke/fill (color) and size of pointmarkers from templated legend?

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

I took a look at the following example :

http://support.scichart.com/index.php?/Knowledgebase/Article/View/17244/39/tutorial—custom-legend-with-color-picker-and-custom-point-markers

and

http://support.scichart.com/index.php?/Knowledgebase/Article/View/17183/28/pointmarker-color-bindings


I noticed that I can change the stroke thickness and color of the line of the renderable series but not those of the pointmarkers . How can I achieve this in this specific example?

I need a style or templated solution because I have multiple renderable series on several charts on separate panes.

I tried the following but even setting the fill/stroke to specific values within a style-template does not work :

<Style TargetType="{x:Type s:BaseRenderableSeries}">
        <Setter Property="PointMarkerTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <s:EllipsePointMarker Fill="white" Stroke="white" Width="5" Height="5"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

When I create a FastLineRenderableSeries without PointMarkers then only a line is shown on the chart without point markers despite the style in my UserForm.Resources. Anything I am doing wrong?

P.S.: I should have mentioned that I add RenderableSeries via ViewModel and add to ChartSeriesViewModel. But whether the RenderableSeries is created in the viewmodel and not in xaml should not make a difference right?

Thanks

  • You must to post comments
Showing 0 results
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