public void MediaMinimize()
 {
     Dispatch("Remove Plugin", _maximizedView);
     _maximizedView = null;
     System.GC.Collect();
     MediaViewer.OnMinimize();
     Dispatch("View: Normal");
 }
 public void MediaMaximize()
 {
     MediaViewer.OnMaximize();
     _maximizedView =
         new MaximizedMediaPlayerView(new MaximizedMediaPlayerViewModel(MediaViewer.MediaView,
             new MaximizedMediaControlView(MediaControlBar)));
     Dispatch("Attach Plugin On Top", _maximizedView);
     Dispatch("View: Fullscreen");
 }