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

Ideal Image Size

1 Answer 127 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 12 Oct 2018, 04:06 PM
I was going to use the SlideView to show images.  What is the best image size to use?

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 12 Oct 2018, 07:39 PM
Hi David,

This is entirely up to the target platform and even which device on that platform. Every device has a different pixel density and resolution.

If you're looking for what the dimensions might be in the area, you could do a test like this and see the values for each platform:

<telerikPrimitives:RadSlideView x:Name="SlideView" HorizontalContentOptions="Fill" VerticalContentOptions="Fill">
    <telerikPrimitives:RadSlideView.ItemTemplate>
        <DataTemplate>
            <Grid x:Name="TemplateRoot">
                <StackLayout HorizontalOptions="Center" VerticalOptions="Center">
                    <Label Text="{Binding Width, StringFormat='Width: {0:N2}', Source={x:Reference TemplateRoot}}" />
                    <Label Text="{Binding Height, StringFormat='Height: {0:N2}', Source={x:Reference TemplateRoot}}" />
                </StackLayout>
            </Grid>
        </DataTemplate>
    </telerikPrimitives:RadSlideView.ItemTemplate>
</telerikPrimitives:RadSlideView>


Downsampling

If you want more control over the image's rendering, you could use a 3rd party image control to restrict the resolution of the image. A popular option is FFImageLoading, scroll down and read the Downsample properties in this documentation.


If you have any trouble using images in the ItemTemplate, please open a support ticket here and attach your code so we can investigate directly.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SlideView
Asked by
David
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or