I have a case where there can be hundreds or even thousands of potential series on the surface.
When I use the LegendModifier, I only see the first 20 or so series.
What would it take to display a scrollbar so that the user can see all available series?
Thank you for your enquiry! We recently updated the documentation on the SciChartLegend API.
The actual SciChartLegend control as well as the LegendModifier class accept the ScrollViewer.VerticalScrollBarVisibility property, as you can see below:
If you are using LegendModifier with ShowLegend=True
Then you can set ScrollViewer.VerticalScrollBarVisibility directly on the LegendModifier, and the internally created legend will pick this up.
<!-- When using ShowLegend=True, you can set ScrollViewer visibility as follows --> <s:LegendModifier x:Name="legendModifier" LegendPlacement="Inside" ShowLegend="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"/>
If you are displaying a separate SciChartLegend control
Then you can set ScrollViewer.VerticalScrollBarVisibility directly on the SciChartLegend control
Creating a Custom Control Template (Advanced)
For more advanced control over the legend output, you can apply a custom Control Template to the SciChartLegend. It’s a very simple control template, you can modify the scrollviewer directly. Have a look at the documentation on the SciChartLegend API for more advanced scenarios like templating the legend, or legend row templates.
Please login first to submit.