public ClipPlayerViewModel(ClipPlayer clipPlayer, TwitchClip twitchClip) { m_MediaElement = clipPlayer.Media; Commands = new AppCommands(ViewModel: this); Controller = new ControllerViewModel(this); this.TwitchClip = twitchClip; }
private void Image_MouseDown(object sender, MouseButtonEventArgs e) { if (sender is Grid grid) { ClipPlayer clipPlayer = new ClipPlayer(grid.DataContext as TwitchClip); clipPlayer.ShowDialog(); } }