Porting Xamarin App to MAUI

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ARP
Newbie
Newbie
Posts: 2
Joined: Thu Jan 20, 2022 12:00 am

Porting Xamarin App to MAUI

Post by ARP » Tue Jul 16, 2024 1:44 pm

We are porting our apps from Xamarin Forms to MAUI. I have run into an issue.

I created a new MAUI project and added the Steema TeeChart MAUI nuget package and then copied over my files and modified the xamarin forms headers to MAUI headers.

Our current code does the following:

ChartView chart = new ChartView();

It then proceeds to add the elements to the chart object. This is the way the examples showed to do this in the past.

I get an error that ChartView is not defined.

I am hoping I just need some other nuget package or a using or something, but nothing comes up with Intellisense.

What do I do?

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Porting Xamarin App to MAUI

Post by Pep » Mon Jul 29, 2024 3:04 pm

Hello,
yes, the problem is that you cannot use the same TeeChart NET for Xamarin nuget package for MAUI projects, you have to use the TeeChart NET for MAUI and it changes the way to use it.
I'd suggest you to download the TeeChart NET for MAUI nuget packge instead, and also take a look at the TeeChart NET for MAUI examples available at the Steema github account

Best regards

ARP
Newbie
Newbie
Posts: 2
Joined: Thu Jan 20, 2022 12:00 am

Re: Porting Xamarin App to MAUI

Post by ARP » Tue Aug 06, 2024 3:36 pm

I was able to get the MAUI nuget and much of it is working better. As you know we are communicating via email as well.

I have another issue, however, that i wanted to post here in case another person also could have the answer.

I have the following:

_chart.Chart.AfterDraw += Chart_AfterDraw;

Chart_AfterDraw never gets called.

I have tried _chart.Chart.Invalidate(); I also found a post a while back where this was suggested: var bmp = _chart.Chart.Bitmap;

Neither of those trigger AfterDraw to be executed.

How do i get AfterChart to be executed?

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Porting Xamarin App to MAUI

Post by Pep » Sun Aug 11, 2024 7:16 am

Hello,
yes, we continue working on the other issues. We'll try to upload a new TeeChart NET for MAUI versin that fixes the commented issues as soon as possible.
In meaintime, about the problem that you're getting related to AfterDraw event please, check the Dashboard view demo example included into the MAUI example at the Github Steema account

This Dashboard view includes a call or use of the AfterDraw event, and it got called correctly, but we've found that calling som drawing methods inside AfterDraw method are not working fine and we're also trying to fix them.

Post Reply