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:

Created:

Updated:

Platform:

Replies:

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

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

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.

;