It is worth noting that to use the @ hansmaad suggestion above, you need to create a new namespace and point to it with XAML, not the assembly. i.e.
XAML:
xmlns:chart="clr-namespace:MyApplication.UserControls.Charting"
WITH#
using System.Windows.Controls.DataVisualization.Charting;
using System.Windows;
namespace MyApplication.UserControls.Charting {
class Chart : System.Windows.Controls.DataVisualization.Charting.Chart {}
class UnorderedLineSeries : LineSeries {
....
}
}
source
share