LegendProvide in the SlideView Problem

3 posts, 0 answers
  1. Yakup
    Yakup avatar
    7 posts
    Member since:
    Dec 2019

    Posted 21 Mar 2020 Link to this post


    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. Yana
    Yana avatar
    5015 posts

    Posted 23 Mar 2020 Link to this post

    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.

    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.
  3. Yakup
    Yakup avatar
    7 posts
    Member since:
    Dec 2019

    Posted 25 Mar 2020 in reply to Yana Link to this post

    Hi Yana,

    Thank you for your answer, your example worked.

Back to Top