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.
Unfortunately, activation email could not send to your email. Please try again.

how to set cornerradius in codebehind not xaml?

Thread ID:





121421 Dec 11,2015 10:31 PM Dec 14,2015 03:32 AM WPF 1
Tags: SfChart
Asked On December 11, 2015 10:31 PM

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"

Rachel A [Syncfusion]
Replied On December 14, 2015 03:32 AM

Hi Ven,

Thanks for contacting Syncfusion support.

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

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.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.