private void UpdateWebView(RssDetailViewModel model)
        {
            MainViewModel.Instance.IsBusy = true;
            var htmlSource = new HtmlWebViewSource();

            htmlSource.Html = String.Format("<body style=\"background-color:#000000\"><iframe style=\"background-color:#000000\" src=\"{0}\" width=\"100%\" height=\"380\" frameborder=\"0\" allowtransparency=\"true\" allow=\"encrypted-media\"></iframe></body>", model.ArtItem.Content);
            _htmlSource     = htmlSource;
            MainViewModel.Instance.IsBusy = false;
        }
        public SpotifyPlayListView(object parameter)
        {
            InitializeComponent();
            RssDetailViewModel model = new RssDetailViewModel(parameter);

            BindingContext = MainViewModel.Instance;
            this.Title     = model.ArtItem.Title;
            UpdateWebView(model);
            SharedTransitionNavigationPage.SetSharedTransitionDuration(this, 500);
        }
        private async void ImageButtonShare_Clicked(object sender, EventArgs e)
        {
            RssDetailViewModel rs = (RssDetailViewModel)BindingContext;

            await Xamarin.Essentials.Share.RequestAsync(new Xamarin.Essentials.ShareTextRequest
            {
                Uri   = rs.ArtItem.Link,
                Title = rs.ArtItem.Title
            });
        }
        public RssDetailVideoView(object parameter)
        {
            InitializeComponent();
            RssDetailViewModel model = new RssDetailViewModel(parameter);

            BindingContext = model;
            String urlvideo = YoutubeUrlResolverHelper.ResolveUrl(model.ArtItem.UrlVideo);

            this.Title = model.ArtItem.Title;
            UpdateVideoPlayer(urlvideo);
            SharedTransitionNavigationPage.SetSharedTransitionDuration(this, 500);
        }
        public RssDetailView(object parameter)
        {
            InitializeComponent();

            if (Device.RuntimePlatform == "Android")
            {
                NavigationPage.SetHasNavigationBar(this, false);
            }

            BindingContext = new RssDetailViewModel(parameter);

            SharedTransitionNavigationPage.SetSharedTransitionDuration(this, 500);
        }
        private async void ImageButtonWeb_Clicked(object sender, EventArgs e)
        {
            RssDetailViewModel rs = (RssDetailViewModel)BindingContext;

            await Xamarin.Essentials.Launcher.OpenAsync(rs.ArtItem.Link);
        }