Drawing complex controls
Posted: 12 Jun 2024, 03:18
Hi,
I'm working on a fairly complex custom control for displaying data on a radial chart (similar to what can be found here https://www.syncfusion.com/wpf-controls ... adar-chart).
I need to construct a path geometry that shows the data points, as well as add labels around the chart.
My initial thought was to build a path object inside a canvas, then add new textblocks as children and position them with the canvas left and top attached properties. Is this a good approach?
Would it ever be recommended to just override the OnRender instead?
Thanks
I'm working on a fairly complex custom control for displaying data on a radial chart (similar to what can be found here https://www.syncfusion.com/wpf-controls ... adar-chart).
I need to construct a path geometry that shows the data points, as well as add labels around the chart.
My initial thought was to build a path object inside a canvas, then add new textblocks as children and position them with the canvas left and top attached properties. Is this a good approach?
Would it ever be recommended to just override the OnRender instead?
Thanks