I'm building a chat app where I use several RichTextBlock for displaying chat messages.
Some of them contain one or more Hyperlink objects.
My problem is that when I click on one of these hyperlinks the app crashes with a Access Violation exception. This only happens if the input TextBoxof the chat has focus and the virtual keyboard is displayed on screen. When they keyboard is closed / focus of TextBox is cleared, it works without any problems.
I've found a similar issue here: Hyperlink in RichTextBlock makes the application crash on clicking
However, the accepted answer does not help me, because I can't use a HyperlinkButton instead of a Hyperlink. The hyperlinks can occur in between normal text and should handle line breaks and similar stuff.
Do you have any idea on how to solve this? So far, I've only found out, that this seems to be a common bug, but no solution on how to fix it.
EDIT: After tapping the link the app just closes and the console prints out
The program '[2296] app.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
The global handler for unhandled exceptions is also not called.