dotnet / dotnet/wpf

Unable to Provide Hyperlinks in the Tooltip Property of WPF

Open
#9,304 5 comments 2 reactions 0 assignees View on GitHub
:mailbox_with_no_mail: waiting-author-feedback
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Unable-to-Provide-Hyperlinks-in-the-Tool/10687605)._

---
[severity:Other]
I am trying to include a hyperlink in a tooltip within a WPF application. However, when I click the hyperlink in the tooltip, the Hyperlink_RequestNavigate event is not triggered, and the hyperlink does not open the website in the browser. Below is a sample of the code I am using:

**Xaml:**





Click the link below:


Example Link





**Xaml.cs**

private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri) { UseShellExecute = true });
e.Handled = true;
}

---
### Original Comments

#### Feedback Bot on 6/20/2024, 06:57 PM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.