This is a migrated thread and some comments may be shown as answers.

LegendProvide in the SlideView Problem

2 Answers 8 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
Yakup
Top achievements
Rank 1
Yakup asked on 21 Mar 2020, 08:42 AM

Hi,

LegendProvide in the SlideView not working

 

ErrorPosition 171:49. Cannot assign property "LegendProvider": Property does not exist, or is not assignable, or mismatching type between value and property

ErrorPosition 171:49. Can not find the object referenced by `pieChartOperation`


2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 23 Mar 2020, 03:33 PM

Hello Yakup,

Thank you for providing the image  - I quickly reproduced the erroneous behavior on my side.

I've researched further and it seems it is caused by some XAML limitation in Xamarin.Forms as the content views inside SlideView are loaded on demand. 

I can suggest the following workaround - you can define the ContentView Content as a Resource inside Page Resources or the other alternative is to define it in a separate ContentView file and reference it with <local:ChartContentView>.

I have attached a sample solution based on your code to show you the first approach, please download it and give it a try.

I hope I was of help. Let me know if you have any additional questions.

Regards,
Yana
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Yakup
Top achievements
Rank 1
answered on 25 Mar 2020, 10:00 AM

Hi Yana,

Thank you for your answer, your example worked.

Tags
SlideView
Asked by
Yakup
Top achievements
Rank 1
Answers by
Yana
Telerik team
Yakup
Top achievements
Rank 1
Share this question
or