How to create a legend with WPF Xaml code?

Aug 23, 2012 at 7:15 PM

Hi, I have studied your legend demos. But what I have only found is the creation of a legend with C# code. Is there a possibility to do the same with xaml code?

Coordinator
Aug 24, 2012 at 6:26 AM

It should be possible also in XAML. I think all Legend* properties are included in OxyPlot.Wpf.Plot. 

Remember to set the Title of the series.

Aug 24, 2012 at 8:59 AM

Hi, objo. After setting the Title of the series everything is working fine. Thanks for this hint.