We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to set cornerradius in codebehind not xaml?

this my sample code
chart3d.Legend = new Syncfusion.UI.Xaml.Charts.ChartLegend() {LegendPosition = LegendPosition.Outside, DockPosition = Syncfusion.UI.Xaml.Charts.ChartDock.Floating, Orientation = ChartOrientation.Vertical, CornerRadius = 0 };

CornerRadius does not accept what i typed "CornerRadius = 0"

1 Reply

RA Rachel A Syncfusion Team December 14, 2015 08:32 AM UTC

Hi Ven,

Thanks for contacting Syncfusion support.

You can set the CornerRadius  for legend(in code)  as in the below code example.

[C#]
chart3d.Legend = new Syncfusion.UI.Xaml.Charts.ChartLegend() { LegendPosition = LegendPosition.Outside, DockPosition = Syncfusion.UI.Xaml.Charts.ChartDock.Floating, Orientation = ChartOrientation.Vertical,CornerRadius=new CornerRadius(5,5,5,5)};



You can also refer the online API documentation.

http://help.syncfusion.com/cr/wpf/sfchart

Regards,
Rachel.A

Loader.
Up arrow icon