How to create a legend with WPF Xaml code?

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

aec wrote at 2012-08-23 21:15:

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?


objo wrote at 2012-08-24 08:26:

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.


aec wrote at 2012-08-24 10:59:

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