Legend Checkboxes not visible in Beta 3 (WPF)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike B
Newbie
Newbie
Posts: 7
Joined: Wed Sep 07, 2005 4:00 am

Legend Checkboxes not visible in Beta 3 (WPF)

Post by Mike B » Mon Mar 31, 2008 6:33 pm

When enabling checkboxes in the legend, I do not see the checkboxes; however they are working.

Code: Select all

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            Steema.TeeChart.Styles.Error error1 = new Steema.TeeChart.Styles.Error(tChart1.Chart);
            Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            Steema.TeeChart.Styles.Error error2 = new Steema.TeeChart.Styles.Error(tChart1.Chart);
            error1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
            error2.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
            line2.Pointer.Visible = true;
            error2.Color = line2.Color;
            line1.Pointer.Visible = true;
            error1.Color = line1.Color;
            error1.ShowInLegend = false;
            error2.ShowInLegend = false;
            tChart1.Legend.CheckBoxes = true;
            tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;
            for (int i = 1; i < 20; i++)
            {
                double value1 = (i * 10);
                double sem1 = (i);
                line1.Add(i, value1);
                error1.Add(i, value1, sem1);
                double value2 = (i * 100);
                double sem2 = (i);
                line2.Add(i, value2);
                error2.Add(i, value2, sem2);
            } 
       }
Am I missing something?

Thanks,
Mike

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: Legend Checkboxes not visible in Beta 3 (WPF)

Post by Christopher » Tue Apr 01, 2008 8:18 am

Hello Mike,
Mike wrote:When enabling checkboxes in the legend, I do not see the checkboxes; however they are working.

Am I missing something?
No, it's not you, it's the WPF beta :shock:

Anyhow, I've fixed this now and the fix will be in the next release.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply