Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在带有 WebView 控件的 UWP 应用中,用户可以:
但是,选择“复制”不会复制文本吗?
什么不见了?一些处理“复制事件”的代码,或者......?
这是我们记录的一个已知问题,我不确定具体的构建版本,但修复应该在未来的版本中可用。
我终于找到了答案,因此您可以将选定的内容复制到剪贴板。所以这是代码:
DataPackage dataPackage = await YourWebView.CaptureSelectedContentToDataPackageAsync(); Clipboard.SetContent(dataPackage);