create legend Icon for stripline programmatically

I would like to create a legend Icon for a stripline via c# code. I previously got an example from syncfusion, however, for the LegendIconTemplate it used a datatemplate from xaml. I don't want to use xaml and need do it all in c#. Thanks.

1 Reply

MK Muneesh Kumar G Syncfusion Team April 25, 2018 06:18 AM UTC

Hi Caleb,  
  
As per your requirement we have created LegendIconTemplate and other chart elements in code behind. Please find the sample from the following location.  
 
  
Thanks,  
Muneesh Kumar G.  
  
 


Loader.
Up arrow icon