This question is locked. New answers and comments are not allowed.
Hello.
Currently RadSlideView has 2 methods. These are:
MoveToPreviousItem and MoveToNextItem
Also, it has the property SelectedItem.
Unfortunately, if the SlideView is on the 1st slide and the application wants to slide on the 4th, you have to do something like the following:
slideView.SelectedItem = my4thSlide;
The problem with that approach is that the application does not slide to the 4th slide but it just displays it straight away (without any kind of animation). I have tried a lot of approaches to animate it, one of them was to use the SlideAnimationCompleted event to advance to the next and the next and the next page like the following:
void mySlideAnimationCompleted(object sender, EventArgs e)
{
int iCur = GetSelectedSlideIndex();
if (iGoingToSlide == iCur)
{
mySlideView.SlideAnimationCompleted -= mySlideAnimationCompleted;
return;
}
if (iGoingToSlide < iCur)
mySlideView.MoveToPreviousItem(true);
else
mySlideView.MoveToNextItem(true);
}
The problem with that approach is that the slide animation (eg. from the 1st to the 4th slide) is not very good (probably because of the acceleration/deceleration of the slide speed from the 1st to the 2nd, from the 2nd to the 3rd and go on.
Is it any way that I can somehow override that animation behavior?
Does Telerik have any thoughts of creating a function like MoveToSpecificItem?
Thank you very much.
Efthymios Kalyviotis
Currently RadSlideView has 2 methods. These are:
MoveToPreviousItem and MoveToNextItem
Also, it has the property SelectedItem.
Unfortunately, if the SlideView is on the 1st slide and the application wants to slide on the 4th, you have to do something like the following:
slideView.SelectedItem = my4thSlide;
The problem with that approach is that the application does not slide to the 4th slide but it just displays it straight away (without any kind of animation). I have tried a lot of approaches to animate it, one of them was to use the SlideAnimationCompleted event to advance to the next and the next and the next page like the following:
void mySlideAnimationCompleted(object sender, EventArgs e)
{
int iCur = GetSelectedSlideIndex();
if (iGoingToSlide == iCur)
{
mySlideView.SlideAnimationCompleted -= mySlideAnimationCompleted;
return;
}
if (iGoingToSlide < iCur)
mySlideView.MoveToPreviousItem(true);
else
mySlideView.MoveToNextItem(true);
}
The problem with that approach is that the slide animation (eg. from the 1st to the 4th slide) is not very good (probably because of the acceleration/deceleration of the slide speed from the 1st to the 2nd, from the 2nd to the 3rd and go on.
Is it any way that I can somehow override that animation behavior?
Does Telerik have any thoughts of creating a function like MoveToSpecificItem?
Thank you very much.
Efthymios Kalyviotis