We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to render images within the application in carousel in different platforms

In Carousel, images take a major role. In Carousel needs to be able to share images across all platforms. These carousel’s images need to be configured based on the platform basis. Source of carousel’s images from any one of the following types

  1. Loading from file - Requires while filepath that can be resolved on each platform. (For Example: “/storage/emulated/0/Pictures/download1.JPG”)

 

 

  1. Loading from URL images – Requires Url link (For Example: https://www.xamarin.com/content/images/pages/branding/assets/xamagon.png )

 

 

  1. Loading local images – Requires a resource identifier to an image file

 

 

While accessing the images from local resource folder, need to ensure that their build action as per the platforms.

 

Platforms

Build Action

PCL

Embedded Resource

Android (Resource folder)

Android Resource

iOS (Resource folder)

Bundle Resource

UWP (Assets folder)

Content

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7538 03/02/2017 03/02/2017 Xamarin.Forms SfCarousel
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.