ColorGrid Buggy in WPF Demo App

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Walt
Newbie
Newbie
Posts: 35
Joined: Wed Aug 17, 2005 4:00 am
Location: San Jose, CA
Contact:

ColorGrid Buggy in WPF Demo App

Post by Walt » Mon May 04, 2009 7:38 pm

I am using the evaluation build of version 4.0.0.15032/3/4.

In the WPF demo app, select the ColorGrid series, then pan with the right mouse button or zoom in and notice that the colors shift around and are not plotted correctly.

Also, I noticed that there is a ShowEditor method in the WPF control, but it does nothing. I guess the WPF control is still considered an alpha or beta build? Any idea of a timeframe for a fully featured and robust build?

Thanks,

Walt

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 06, 2009 10:30 am

Hi Walt,
In the WPF demo app, select the ColorGrid series, then pan with the right mouse button or zoom in and notice that the colors shift around and are not plotted correctly.
I could reproduce the issue here and added it (TW16014129) to the defect list to be fixed.
Also, I noticed that there is a ShowEditor method in the WPF control, but it does nothing. I guess the WPF control is still considered an alpha or beta build? Any idea of a timeframe for a fully featured and robust build?
We consider current WPF release being a production version already. ShowEditor is inherited from TChart class but the editor is not supported in WPF applications. I don't think there are plans for it either.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Walt
Newbie
Newbie
Posts: 35
Joined: Wed Aug 17, 2005 4:00 am
Location: San Jose, CA
Contact:

Post by Walt » Sat May 23, 2009 1:26 am

narcis wrote:Hi Walt,
I could reproduce the issue here and added it (TW16014129) to the defect list to be fixed.
I see that TW16014129 has already been fixed in the latest release, and I have verified it. Thanks for a fast fix. I will continue to consider the WPF control, although I have also noticed areas where the performance is not as good as the WinForms control. It is also very helpful to have access to the editor.
narcis wrote:Hi Walt,
We consider current WPF release being a production version already. ShowEditor is inherited from TChart class but the editor is not supported in WPF applications. I don't think there are plans for it either.
Would it be possible for you to make the WinForms editor work for the WPF control? I realize many types are different, but maybe this would be easier for you than writing an all-new WPF implementation. I would consider this acceptable as long as it is robust. The editor is usually used as a modal dialog, so there are no airspace issues to deal with.

On the other hand, if I am going to use the WinForms control inside a WPF app, then I do have airspace issues (can't put chart in a ScrollViewer). This is an issue with WPF, so I'm not expecting you to solve it (I'm looking into the solution posted here).

However, there is another issue with WPF integration. Please create a WPF application in VS2008, reference the regular WinForms TeeChart.dll, and try the following code:

Code: Select all

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:teechart="clr-namespace:Steema.TeeChart;assembly=TeeChart"
    Title="Test of WinForms TeeChart Integration Into WPF App" Height="600" Width="400">
    <StackPanel>
      <TabControl>
        <TabItem Header="TeeChart in Tab">
          <WindowsFormsHost><teechart:TChart/></WindowsFormsHost>
        </TabItem>
      </TabControl>
      <WindowsFormsHost><teechart:TChart/></WindowsFormsHost>
    </StackPanel>
</Window>
Notice that the background for the first chart does not show everywhere that it should (there is a solid white background behind the chart title). For the second chart, there is no problem. (This is especially ugly if using a dark theme.)

The only difference is that the first chart is within a tab control. This problem also occurs when putting the chart in other containers such as those in the AvalonDock library. Other parts of the chart render ok, so it seems to be a bug in TeeChart.dll

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 25, 2009 1:29 pm

Hi Walt,
Would it be possible for you to make the WinForms editor work for the WPF control? I realize many types are different, but maybe this would be easier for you than writing an all-new WPF implementation. I would consider this acceptable as long as it is robust. The editor is usually used as a modal dialog, so there are no airspace issues to deal with.
Ok, I've added your request to the wish-list to be considered for inclusion in future releases.
However, there is another issue with WPF integration. Please create a WPF application in VS2008, reference the regular WinForms TeeChart.dll, and try the following code:

Code:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:teechart="clr-namespace:Steema.TeeChart;assembly=TeeChart"
Title="Test of WinForms TeeChart Integration Into WPF App" Height="600" Width="400">
<StackPanel>
<TabControl>
<TabItem Header="TeeChart in Tab">
<WindowsFormsHost><teechart:TChart/></WindowsFormsHost>
</TabItem>
</TabControl>
<WindowsFormsHost><teechart:TChart/></WindowsFormsHost>
</StackPanel>
</Window>

Notice that the background for the first chart does not show everywhere that it should (there is a solid white background behind the chart title). For the second chart, there is no problem. (This is especially ugly if using a dark theme.)

The only difference is that the first chart is within a tab control. This problem also occurs when putting the chart in other containers such as those in the AvalonDock library. Other parts of the chart render ok, so it seems to be a bug in TeeChart.dll
I haven't been able to reproduce the issue here using build 3.5.3425.20243/4/5 from 19th May. Could you please confirm this is the build you are using? Is there any additional step I should perform to reproduce the problem?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Walt
Newbie
Newbie
Posts: 35
Joined: Wed Aug 17, 2005 4:00 am
Location: San Jose, CA
Contact:

Post by Walt » Tue May 26, 2009 6:56 am

narcis wrote:I haven't been able to reproduce the issue here using build 3.5.3425.20243/4/5 from 19th May. Could you please confirm this is the build you are using? Is there any additional step I should perform to reproduce the problem?

Thanks in advance.
I am using an evaluation of version 4.0.2009.16187.

The background behind the title in the first chart should not be solid white. In order to make this more noticeable, please change the XAML to the following:

Code: Select all

<Window x:Class="WpfApplication1.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:teechart="clr-namespace:Steema.TeeChart;assembly=TeeChart"
  Title="Test of WinForms TeeChart Integration Into WPF App" Height="600" Width="400">
  <StackPanel>
    <TabControl>
      <TabItem Header="TeeChart in Tab">
        <WindowsFormsHost><teechart:TChart x:Name="Chart1"/></WindowsFormsHost>
      </TabItem>
    </TabControl>
    <WindowsFormsHost><teechart:TChart x:Name="Chart2"/></WindowsFormsHost>
  </StackPanel>
</Window>
And add the following code-behind:

Code: Select all

  public partial class Window1 : Window
  {
    public Window1()
    {
      InitializeComponent();
      Chart1.Panel.Gradient.StartColor = System.Drawing.Color.Gray;
      Chart1.Panel.Gradient.EndColor   = System.Drawing.Color.Silver;
      Chart2.Panel.Gradient.StartColor = System.Drawing.Color.Gray;
      Chart2.Panel.Gradient.EndColor   = System.Drawing.Color.Silver;
    }
  }
And don't forget to reference System.Drawing.

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 26, 2009 8:00 am

Hi Walt,

Thanks for the information.

Using our current v4 sources, which haven't change very little from the release you are using as it was published last week, I'm still unable to reproduce the issue. Here's what I get following your instructions:

Image

I imagine that's different from what you get, isn't it? If you want to send us your test project we will be glad to test it here.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Walt
Newbie
Newbie
Posts: 35
Joined: Wed Aug 17, 2005 4:00 am
Location: San Jose, CA
Contact:

Re: ColorGrid Buggy in WPF Demo App

Post by Walt » Thu Aug 13, 2009 10:59 pm

Sorry for the late reply. Below is what I get. Maybe this is a weird video-card issue or something? This only happens with the WinForms control (not the WPF version), but I need to use the WinForms version in order to have access to the editor (and maybe other reasons). No matter what settings I change, I can not get rid of the white box behind the plot area and chart title. I am using .NET 3.5 SP1 (and VS2008 SP1).
WPF Integration Bug.png
WPF integration issue.
WPF Integration Bug.png (20.02 KiB) Viewed 13531 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ColorGrid Buggy in WPF Demo App

Post by Sandra » Mon Aug 17, 2009 9:50 am

Hello Walt,

I couldn't reproduce your issue with last version of TeeChartFor.Net. Please, you could send us a simple example project because we can reproduce problem here? Now, you can attach your projects directly in formus post.


Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply