如何将元素从iframe内部拖放到外部Puppeteer

时间:2020-03-20 04:48:44

标签: javascript puppeteer

我在框架内有一个元素,必须将其拖放到框架外

 ObservableCollection<ViewModel> observableCollection { get; set; }

    public MainPage()
    {
        InitializeComponent();

        observableCollection = new ObservableCollection<ViewModel>()
        {
           new ViewModel(){ IsAudioPlaying=true}
        };
        this.BindingContext = observableCollection;
    }

    private void PlayOrPause(object sender, EventArgs e)
    {

        if (observableCollection[0].IsAudioPlaying == true)
        {
            observableCollection[0].IsAudioPlaying = false;
            imageButton.Source = "pause.png";
        }
        else
        {
            observableCollection[0].IsAudioPlaying = true;
            imageButton.Source = "play.png";
        }
    }

执行代码后,没有错误,但无法删除元素。 预先感谢。

0 个答案:

没有答案