Is RichEditBox in WinUI3 support ScrollView_Changeing event?

60 Views Asked by At

The RichEditBox controll in WinUI3 has scrollbar, but I don't know how to handle the scrollbar's changing event, and how to set position of the scrollbar. In the visual tree I can see that RichEditBox contains a scrollviewer, can I get the scrollviewer and set its event handler?

1

There are 1 best solutions below

1
Alex Xiang On

Add a ScrollViewer to wrap the RichEditBox, deal with the ScrollViewer's event, I can get the scroll offset of RichEditBox. That match my question.

But, there's a nother question, how can I do the same thing for webview2? It dosn't work for webview2.