ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Chart get overlap with other control in WPF Application
Posted by abhishek.mr on May-04-2018 00:41
Attachments:
Hello,

When I use this chart director control in WPF WindowsFormHost control, it get overlap with the other WPF controls when some popup user control get popped up or even in small display resolution window.

Please find the attached image for your reference.

Thanks.
Regards,
Abhishek
Capture.PNG

  Re: Chart get overlap with other control in WPF Application
Posted by Peter Kwan on May-04-2018 03:10
Hi abhishek.mr,

ChartDirector for .NET 6.2 natively supports WPF. There is a WPFChartViewer for WPF applications, and the ChartDirector distribution comes with plenty of WPF examples. If you are using WPF, we suggest you use the native WPFChartViewer.

You can also use the WinChartViewer (which is a Windows Forms control) with the WindowsFormsHost in a WPF application. Note that WindowsFormsHost always display on top of other WPF controls. This is not related to ChartDirector, but is a "feature" of the WindowsFormsHost. For example, if you put a standard Microsoft control inside the WindowsFormsHost, it will also display on top of other WPF controls.

In brief, the effect you see is not related to ChartDirector, but is a feature of the WindowsFormsHost. If you do not want this effect, the suggested method is not to use the WindowsFormsHost, but the use the WPFChartViewer instead.

Regards
Peter Kwan