I am new for WPF application.I am working on a Sensor reading WPF application.In this application i have to select sensors out of 170 Sensors.After selecting sensors when i click on view report then chart plotter draw the Graph of selected sensors.It Works fine for me.
Problem :
Here due to page size limitation i have fixed height of graph.But when count of sensors is more than the height of graph then legends of selected sensors hide those who are not adjust in the height of graph.How i can add scroll to legend box so that user can scroll and check all sensor legends.
Please give some idea.
Thanks in advance.
I searched a lot on web for this problem but i got no solution for this.So to solve this problem i follow these steps.
1.)first i make plotter legend visibility false by
plotter.LegendVisible = false;
2.)Second i add a listview control exactly on the graph where plotter Legend was appear.
3.)Then i do some work on back end as –
-Add ItemVM.cs :
-In mainform.xaml.cs :
Now i got legend box on chart plotter with scroll and regend forecolor also reflect chart line color.