Exemplo n.º 1
0
 protected override void OnViewAttached(object view, object context)
 {
     base.OnViewAttached(view, context);
     _streamView = view as PlaybackStreamView;
     if (_screenCapturer is BitmapScreenCapturer)
     {
         var dispatcher = _streamView.Dispatcher;
         (_screenCapturer as BitmapScreenCapturer).BitmapConverter =
             x => BitmapUtility.ConvertBitmapToImageSourceOnDispatcher(x, dispatcher);
     }
 }
Exemplo n.º 2
0
 public void Hide()
 {
     if (IsActive)
     {
         _streamView.Close();
         _streamView = null;
         CanShow = true;
     }
 }
Exemplo n.º 3
0
 protected override void OnDeactivate(bool close)
 {
     base.OnDeactivate(close);
     _screenCapturer.Stop();
     if (close && _streamView != null)
     {
         PersistViewPosition();
         _streamView = null;
         CanShow = true;
     }
 }