Transparent Background

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Ramajayam
Posts: 11
Joined: Mon Feb 10, 2014 12:21 pm

Transparent Background

Post by Ramajayam » Sat Feb 22, 2014 6:46 pm

Hi,
How the make the LightningChart background transparent??
Any suggestions????
Thanks

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Transparent Background

Post by ArctionPasi » Sun Feb 23, 2014 10:45 am

//WPF level transparency. Use always transparent black.
Chart.Background = new SolidColorBrush(Color.FromArgb(0,0,0,0)); //Transparent black. Keep it always this color.

//Background of chart. The whole chart area
Chart.ChartBackground.Color = Color.FromArgb(0,0,0,0); //you can define any color or alpha level here
Chart.ChartBackground.GradientFill = Arction.WPF.LightningChartUltimate.GradientFill.Solid;

//XY graph space
Chart.ViewXY.GraphBackground.Color = Color.FromArgb(0,0,0,0);//you can define any color or alpha level here
Chart.ViewXY.GraphBackground.GradientFill = Arction.WPF.LightningChartUltimate.GradientFill.Solid;
LightningChart Support Team, PT

Post Reply