This question is locked. New answers and comments are not allowed.
Hi,
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:-
The XAML.cs Code looks like this
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"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
xmlns:telerikCore="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Core"
xmlns:teleriklcontrols="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="True">
<!--LayoutRoot is the root grid where all page content is placed-->
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"Transparent"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<!--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"
/>
</
StackPanel
>
<!--ContentPanel - place additional content here-->
<
Grid
x:Name
=
"ContentPanel"
Grid.Row
=
"1"
Margin
=
"12,0,12,0"
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerikPrimitives:RadSlideView
x:Name
=
"kSlideView"
IsLoopingEnabled
=
"True"
>
<
telerikPrimitives:RadSlideView.ItemTemplate
>
<
DataTemplate
>
<
Image
Source
=
"{Binding Uri}"
Stretch
=
"Fill"
/>
</
DataTemplate
>
</
telerikPrimitives:RadSlideView.ItemTemplate
>
<
telerikPrimitives:RadSlideView.DataSource
>
<
telerikPrimitives:SlideViewPictureSource
ItemsSource
=
"{Binding}"
/>
</
telerikPrimitives:RadSlideView.DataSource
>
</
telerikPrimitives:RadSlideView
>
<
telerikPrimitives:RadToggleSwitch
Grid.Row
=
"1"
Header
=
"loop"
IsChecked
=
"{Binding ElementName=kSlideView, Path=IsLoopingEnabled, Mode=TwoWay}"
>
</
telerikPrimitives:RadToggleSwitch
>
</
Grid
>
</
Grid
>
The XAML.cs Code looks like this
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
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";
}
kSlideView.DataContext=uri;
}
}