Border and Background


Author
Message
Karl Baum
Karl Baum
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 9, Visits: 23
Hi,

We are using the WPF charting control (NChartControl) and am attempting to do some style adjustments to fit in with the style of the application.

1) We have a surface mesh plot (3d with NGridSurfaceSeries).  The control has a 3d style border around it.  We would like to remove this border.  Our graph has a black background and this border does not look good with it.

2) We have a 2D vector plot (NVectorSeries).  I was unable to find a way to make the background black.  It also has a border around the control I would like to remove.

I'm sure these things are simple to do, but I haven't stumbled across how.
Thanks
Reply
Karl Baum
Karl Baum
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 9, Visits: 23
Thanks for the prompt response.

    nChartControl1.BackgroundStyle.FrameStyle.Visible = false;
Did not work to remove the border of the 3d chart.  It changes the style of the border, but it was still there. 
For example, if I set the chart background to black, and set the window background to black, I still end up with a white line border along two sides of the control.
    chartnChartControl1.Charts[0].BackgroundFillStyle = new NColorFillStyle(System.Drawing.Color.Black);
    this.Background = System.Windows.Media.Brushes.Black; // In my tests 'this' was a WPF user control
    chartnChartControl1.BackgroundStyle.FrameStyle.Visible = false;

It does look like it worked to remove the border from the 2d vector chart.

For setting the background black, I am referring to the area the vectors are being drawn on.  I believe that is the plot.  Neither of the calls worked to change the background color.  Both affected only the area of the chart outside of the area the vectors are being drawn on.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search