How to use ImagePathConverter?

I am try to use the ImagePathConverter class to load local images from a folder in the PCL (actually I use .NET Standard 2.0).
I get the error: The name 'ImagePathConverter' does not exist in the current context


What do I need to include? I looked at the examples and they seem to include it with this: using SampleBrowser.Core;

I am really not sure how to include and use that class, any help?

Thanks!

3 Replies

MK Magesh Kumar Krishnan Syncfusion Team March 15, 2018 11:54 AM UTC

Hi Josh

Thanks for contacting us.

The class "ImagePathConverter" is created for internal purposes in our sample browser application. You will not need this class while using our controls in your application.

You can find more details about controls in the below link.
http://help.syncfusion.com/xamarin  

Regards,
Magesh


CM Cristian Merli March 15, 2018 06:29 PM UTC

Ok so how do i load an image that is in a PCL folder, rather than the resources folder in iOS and Android?


MK Magesh Kumar Krishnan Syncfusion Team March 16, 2018 04:53 AM UTC

Hi Cristian,

You can access the images in PCL project as mentioned in the below link.

https://docs.microsoft.com/en-in/xamarin/xamarin-forms/user-interface/images?tabs=vswin#embedded-images

However if you are facing any issues in setting these images for our control, kindly let us know the details of the control and feature which will help us to assist you on this.

Regards,
Magesh

Loader.
Up arrow icon