Open Arlodotexe opened 2 months ago
This error only throws when AoT is enabled. Running without AoT works as expected:
Also worth noting that this document doesn't have any embedded samples in it. This means might be an issue with the MarkdownTextBlock
being used by the gallery.
We're still using 7.1.2 for the Markdown renderer in the Gallery:
These will need to be updated to the latest version of MarkdownTextBlock
in Labs.
Looking through the new Markdig-based Markdown control, I'm not seeing any obvious way to handle clicked links in the consuming application.
I see the library has an AutoLinkParser
that takes an AutoLinkOptions.OpenInNewWindow
, but AutoLink seems to be centered around detecting and making raw links clickable in the renderer. It's not clear where or how link clicks are handled from code-behind.
Looking at another UI project that uses Mardig, markdig.wpf, we find that their sample app is routing "hyperlink clicks" through FrameworkElement CommandBindings. Digging further, they've connected this binding through a Hyperlink
object that is passed to a custom wpf-based LinkInlineRenderer
.
We'll need to create a similar custom link renderer in the MarkdownTextBlock
control offered in Labs before we can move forward with this ticket.
Describe the bug
When running the gallery with the Wasdk head on the latest
main
commit, the 'Shadows overview' sample will crash the app:Exception message:
Stack trace:
This behavior is not present when running the gallery under UWP.
Steps to reproduce
Expected behavior
No crash
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.