Jun 26, 2015 at 2:51 PM
Edited Jun 26, 2015 at 2:53 PM
I'm trying to implement custom UI buttons for my needs (WP8.1 app). So I've created a class that inherits InteractiveViewModel.
public class VideoPlayerInteractiveViewModel : InteractiveViewModel
public VideoPlayerInteractiveViewModel(MediaPlayer player)
I'm trying hard to use MVVM approach in my App so I'm Binding VideoPlayerInteractiveViewModel to the property
Binding going well but since I need to pass the MediaPlayer object I'm creating a new one:
_player = new MediaPlayer();
VideoView = new VideoPlayerInteractiveViewModel(_player);
And sure I loose control over the Xaml defined player... I can't interact with UI controls.
Is there some way to get things work with MVVM? Or am I doing something wrong?