Example #1
0
        public PopupPlayer(PipModes mode)
        {
            this.InitializeComponent();
            _playerVisual = Window.Current.Compositor.CreateSpriteVisual();
            _mode         = mode;
            if (_mode == PipModes.MultiView)
            {
                btnexit.Visibility = Visibility.Collapsed;
            }

            ElementCompositionPreview.SetElementChildVisual(playerHolder, _playerVisual);
        }
Example #2
0
 private static async Task SetCurrent(PipModes value)
 {
     await ApplicationData.Current.LocalSettings.SaveAsync <PipModes>(PopupModeKey, value);
 }