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?
Porting Xamarin App to MAUI
Re: Porting Xamarin App to MAUI
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
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
Pep Jorge
http://support.steema.com
http://support.steema.com
Re: Porting Xamarin App to MAUI
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?
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?
Re: Porting Xamarin App to MAUI
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com