I am making own graph control, it has list of figures
public class Figure
{
public virtual void Render(Graph graph, GDI.Graphics graphics) { }
}
// was nested before, that's why here is @jnovo answer
public class Line : Figure { ... }
public class Plot : Figure { ... }
... // more figures
[ContentProperty("Figures")] // this doesn't help
public class Graph : FrameworkElement
{
public IList<Figure> Figures { get; set; }
}
And I have problems to define it in xaml:
<local:Graph>
<local:Graph.Figures>
<local:Line/> <!-- Property 'Figures' does not support values of type 'Line' -->
</local:Graph.Figures>
</local:Graph>
How to solve it?