Programmatically scrolling to a given point in a clickable text blob [WINUI 3] #8308
Unanswered
lucaregini
asked this question in
Q&A
Replies: 2 comments 3 replies
-
I'll try to help you lucaregini. What have you tried so far? |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can use a RichEditBox inside a ScrollViewer, like I did in this sample : https://github.com/castorix/WinUI3_SendMail A test with FindBoxHighlightMatches from WinUI 3 Gallery + scrolling to the found text ("Test" here) : |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to have a control that supports a scrollable blob of text. The text displayed in there should be styled in 4 possible different ways depending on the specific content. I must be able to identify any "word" that the user has clicked on. At the same time I should be able to programmatically scroll to any of the words within the blob of text based on actions made on other controls in the same window. The content must be created and loaded dynamically. So far I haven't been able to find a way to achieve that in WINUI 3 apart from embedding a webview. Is it really my only option?
Beta Was this translation helpful? Give feedback.
All reactions