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); }
private static async Task SetCurrent(PipModes value) { await ApplicationData.Current.LocalSettings.SaveAsync <PipModes>(PopupModeKey, value); }