Search code examples
wpfchartswpftoolkitlineseries

how to set wpf extended tookit chart line series as a top line series?


is there any way how to bring to the front any of displayed line series in my chart component? I tried Focus(), but this do not work. thanks


Solution

  • var series = (Series)chart.Series[0]; // you can replace 0 by a more appropriate index
    series.SetValue(Panel.ZIndexProperty, 99);
    

    I used an arbitrary value 99 for ZIndex, in reality you can use any value greater than 0.

    Here is the official documentation on this property.