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

how to set cornerradius in codebehind not xaml?

Thread ID:

Created:

Updated:

Platform:

Replies:

121421 Dec 12,2015 03:31 AM UTC Dec 14,2015 08:32 AM UTC WPF 1
loading
Tags: SfChart
Ven
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.

[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

CONFIRMATION

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.

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

;