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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to set cornerradius in codebehind not xaml?

Thread ID:





121421 Dec 12,2015 03:31 AM UTC Dec 14,2015 08:32 AM UTC WPF 1
Tags: SfChart
Asked On December 12, 2015 03:31 AM UTC

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 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.

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon