I need to autoplay a media file if the user scrolls it into the view.
I got something like this:
<ScrollViewer>
<ItemsControl ItemsSource="{Binding SelectedProduct.Entities}" ItemTemplateSelector="{StaticResource EntityDataTemplateSelector}" />
</ScrollViewer>
In one of those DataTemplates I am using a media-player of the PlayerFramework (PlayerFramework on codeplex).
As the user scrolls the media-player (manually) into the view. The video shall start to play.
My problem is: How can I determine if an element is in viewport?
I went with this post early but its not working on winrt.
Hopefully you can help me. Thanks in advance!
Julian