Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 340

Summary: [TW16016733] When you add ColorBand to TChart, then remove it, the color lines ar...
Product: .NET TeeChart Reporter: sandra pazos <sandra>
Component: WPFAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: chris
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2013-11-20 11:24:32 EST
When you add  ColorBand to TChart, then remove it, the color lines aren't disappear. It problem only occurs in WPF version, so the same code works in correct way in Winforms. Could you see next code to check the problem: 
        public MainWindow()
        {
            InitializeComponent();
            MyTChart.Aspect.View3D = false;
            MyTChart.Width = 400;
            MyTChart.Height = 300;
            MyTChart.Axes.Left.SetMinMax(0, 10);
            colorBand = new ColorBand();
            MyTChart.Tools.Add(colorBand);
            colorBand.Axis = MyTChart.Axes.Left;
            colorBand.Color = Colors.Green;
            colorBand.End = 7;
            colorBand.ResizeEnd = true;
            colorBand.ResizeStart = true;
            colorBand.Start = 3;
        }
        ColorBand colorBand;
        private void Button_Click(object sender, RoutedEventArgs e)
        {
          MyTChart.Tools.Remove(colorBand); 
        } [created:2013-10-08T14:06:16.000+01:00 reported by:sandra@steema.com reported in version:]