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

MediaElement will get stretched when panning to the next element

2 Answers 16 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ThiefRiver
Top achievements
Rank 1
ThiefRiver asked on 14 May 2014, 08:01 AM
Item Template:
<DataTemplate x:Key="Videos">
<Grid>
<MediaElement x:Name="MP4MediaElement"
                                      AutoPlay="False"
                                      Visibility="Visible" />
</Grid>
</DataTemplate>

SlideView:
<telerikPrimitives:RadSlideView x:Name="RadSlideView"
                                            DataContext="{StaticResource viewModel}"
                                            ItemsSource="{Binding ImageCollection}"
                                            ItemRealizationMode="Default"
                                            IsLoopingEnabled="False"
                                            IsFilmstripModeEnabled="False"
                                            TransitionMode="Slide"
                                            ItemTemplate="{StaticResource Videos}"
                                            SlideAnimationCompleted="RadSlideView_OnSlideAnimationCompleted"
                                            SelectionChanged="RadSlideView_OnSelectionChanged" />

The image template is a bit more complex than this, but it should illustrate the issue.

I have attached a couple of screenshots of what happens to illustrate the problem.

2 Answers, 1 is accepted

Sort by
0
ThiefRiver
Top achievements
Rank 1
answered on 14 May 2014, 08:07 AM
0
Todor
Telerik team
answered on 19 May 2014, 07:13 AM
Hi Lars,

Thank you for contacting us.

I managed to reproduce the described issue. However, there's nothing we can do to improve the behavior in this case. It seems that the slide animation that we play when the selection is changing doesn't play well while the video of the MediaElement is playing and while it is stopped the animation plays as expected.

Regards,
Todor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
SlideView
Asked by
ThiefRiver
Top achievements
Rank 1
Answers by
ThiefRiver
Top achievements
Rank 1
Todor
Telerik team
Share this question
or