Problems using RadslideViewer

Thread is closed for posting
4 posts, 0 answers
  1. Grey
    Grey avatar
    1 posts
    Member since:
    Feb 2012

    Posted 04 Mar 2012 Link to this post


    I have been facing issues using the Telerik Rad Slide Viewer fro windows mobile phone 7.1.

    I am making a slide show with some images and have taken code from the example at Telerik Tv. 

     The problem is I see the Rad toggle switch as on but no slide show occurs. I also tried toggling the switch to off and then again to ON but the slide show simply does not start. I tried changing the type of all images to Resource , it did not work out. Then setting back the properties to Content. No use..

    I tried making images .jpg  from current.png also. All in vain. All images are of diff size. They are present under folder images of my project.

    The version of Telerik Rad Controls that  I am using is :-v.2011.3.1221.2040

    The XAML Code looks like this:-

    <phone:PhoneApplicationPage  x:Class="Anonymous.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait"
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="Humor Slide Box" Style="{StaticResource PhoneTextNormalStyle}" Width="174" />
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                <RowDefinition />
                <RowDefinition />
            <telerikPrimitives:RadSlideView x:Name="kSlideView" IsLoopingEnabled="True">
                        <Image Source="{Binding Uri}" Stretch="Fill"/>
                    <telerikPrimitives:SlideViewPictureSource ItemsSource="{Binding}" />
            <telerikPrimitives:RadToggleSwitch Grid.Row="1"
                                               IsChecked="{Binding ElementName=kSlideView, Path=IsLoopingEnabled, Mode=TwoWay}">

    The XAML.cs Code looks like this

    public partial class MainPage : PhoneApplicationPage
            // Constructor
            public MainPage()
                this.Loaded += new RoutedEventHandler(MainPage_Loaded);
            void MainPage_Loaded(object sender, RoutedEventArgs e)
                string[] uri = new string[51];
                for (int i = 0; i < 50; i++)
                    uri[i] = "../Images/" + "Image" + (i + 1) + ".png";

  2. Todor
    Todor avatar
    798 posts

    Posted 07 Mar 2012 Link to this post


    Thank you for contacting us.

    RadSlideView's IsLoopingEnabled property determines whether the user can loop among the items infinitely. That is, when the last item is reached, the next item to follow is the first item and vice-versa in the opposite direction. It doesn't provide SlideShow functionality. If you want such functionality, you can use a DispatcherTimer and on the ticks you can call the MoveToNextItem method. You can check out the RadSlideView's FirstLook example in our Examples solution, where you can see our implementation of this scenario.

    I hope this information helps. Let me know if I can assist you further.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Pakeer
    Pakeer avatar
    2 posts
    Member since:
    Mar 2012

    Posted 13 Mar 2012 Link to this post


    I am planning to use SlidView control in one of my WP7 apps.
    My requirement is:
    The number of images/pictured which are loaded in the slideview control is unlimited, for instance, it could be 10, 100, 1000 etc. Could you please let me know whether slideview can handle such scenario, if yes, do you have a sample code ? What is the maximum number of images it can handle with efficient memory handling (to be used in devices such as 256MB Nokia 610). If it can do it, I like to buy this control.

    Does Slideview accept ObservableCollection (a collection of images where the number of images will change on the fly).


  4. Todor
    Todor avatar
    798 posts

    Posted 14 Mar 2012 Link to this post

    Hi Pakeer,

    You can read here the response regarding the same question.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top