A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Thank you for reaching out.
The code you shared is correct and this approach is supported in .NET MAUI. The issue you are seeing is not because of your implementation.
This is a known issue on iOS where TapGestureRecognizer on a Span (inside Label.FormattedText) may not trigger properly. Because of this, even if the event or Command is written correctly, the tap itself is not detected, so nothing happens.
This issue has already been reported and fixed in newer MAUI versions. Updating to the latest .NET/MAUI version and updating the MAUI Controls packages should resolve the problem in most cases.
If you are still seeing the issue even after updating, it is due to current limitations on iOS with Span gesture handling.
As a workaround, you can:
- Use a separate Label or Button for the clickable text instead of Span
- Or apply the TapGestureRecognizer on the whole Label and handle the navigation manually
This should help you achieve the hyperlink behavior reliably.
Reference:
Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.