private void VideoViewer_TileClick(object sender, EventArgs e) { BaseContentEntity content; VideoControlerPage controller; VideoViewer.FreeResourses(); if (sender is ModelVideo) { content = sender as ModelVideo; controller = new VideoControlerPage(content as ModelVideo); } else { content = sender as ModelGame; controller = new VideoControlerPage(content as ModelGame); } App.Frame.Navigate(controller); }
private void Page_Unloaded(object sender, RoutedEventArgs e) { VideoViewer.FreeResourses(); }