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.
WinUI3中的RichEditBox控件有滚动条,但是我不知道如何处理滚动条的变化事件,以及如何设置滚动条的位置。在可视化树中,我可以看到 RichEditBox 包含一个滚动查看器,我可以获取滚动查看器并设置其事件处理程序吗?
添加一个ScrollViewer来包装RichEditBox,处理ScrollViewer的事件,可以得到RichEditBox的滚动偏移量。这符合我的问题。
但是,还有一个问题,我怎样才能为 webview2 做同样的事情?它不适用于 webview2。