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 2558 - LegendPalette tool doesn't render in .net6.0
Summary: LegendPalette tool doesn't render in .net6.0
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-04 06:06 EDT by christopher ireland
Modified: 2022-10-05 09:06 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2022-10-04 06:06:25 EDT
The following code correctly renders the LegendPalette tool in .NET Framework 4.0 but does not render it at all in .net6.0

    public Form1()
    {
      InitializeComponent();
      InitializeChart();
    }

    private void InitializeChart()
    {
      tChart1.Series.Add(typeof(Surface)).FillSampleValues();
      tChart1.Aspect.View3D = true;
      tChart1.Aspect.Chart3DPercent = 50;
      tChart1.Aspect.Zoom = 90;
      _ = new LegendPalette(tChart1.Chart)
      {
        Series = tChart1[0]
      };

      tChart1.Header.Text += $" version {Utils.Version}";
    }