Linked Questions

0 votes
0 answers
15 views

Converting string data to hyperlink [duplicate]

I would like to convert a string data which is in string array to hyperlink, which will be shown in messagebox. The way I would like it to be (all in cs), doesn't work: Button[] playBT = new Button[{...
Jacek Basiak's user avatar
14 votes
3 answers
9k views

How can I get a FlowDocument Hyperlink to launch browser and go to URL in a WPF app?

The following code in a WPF app creates a hyperlink that looks and acts like a hyperlink, but doesn't do anything when clicked. What do I have to change so that when I click it, it opens the default ...
Edward Tanguay's user avatar
3 votes
1 answer
5k views

How to add a hyperlink in a TextBlock in code?

In this question (the answer from eandersson) a hyperlink is used within a TextBlock. I would like to do the same but in the code behind - how to do that? Example from the link: <TextBlock> ...
John Threepwood's user avatar
1 vote
1 answer
4k views

How do you get NavigateUri to work in a WPF window?

The mailto link doesn't work in this sample: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <...
Keith Harrison's user avatar
1 vote
3 answers
2k views

WPF ListBox binding with conditional display

I have a WPF ListBox that I am binding to a collection of Contact objects, similar to public class Contact { int ContactId { get; set; } int ContactType { get; set; } // 1 = phone number, ...
JSR's user avatar
  • 6,236
5 votes
1 answer
1k views

How to make a particular word(s) as hyperlink at runtime in xaml

I am using MVVM model in my silverlight(windows phone)application.I have a textblock in my view called "Status".This textblock will display the status of the transaction.If user is not registered then ...
krrishna's user avatar
  • 2,078
1 vote
2 answers
1k views

Hyperlinks in WPF browser not working

I have included a browser control in a WPF app I'm working on and when hyperlinks in the displayed web page are clicked nothing happens. To go to another page I have to right-click on the link and ...
mattvanleuten's user avatar
0 votes
1 answer
1k views

link email address and send email via outlook

I am working on a wpf app, and I have a Customer Information section where I can record my customer information. In this section, I use a textbox recording customer's email address. But now I want to ...
DanielXu's user avatar
0 votes
1 answer
790 views

Hyperlink on selected value of combobox which is in DataGridTemplateColumn

I am using datagrid in WPF. In one of the column i need to display dropdown values. When the value is selected from combobox i want it to become hyperlink so that users will click the like to open new ...
Pan's user avatar
  • 25
-2 votes
1 answer
576 views

How to store hyperlink in XML file and retrive it to WPF ListBox?

I have a problem again. My problem is that I don't know how to store hyperlink in XML file and how to retrive it from there to WPF ListBox. In my application I write XML file in the following way: &...
user1688773's user avatar
0 votes
1 answer
237 views

How to show a hyperlink in a text

I have a text which may contain some special characters like <b></b> or a link. I want the user to be able to click on the link and open it. TextBlock or RichTextBox seems doesn't show ...
user2970840's user avatar
  • 1,281
0 votes
1 answer
200 views

Simple implementation of a textblock or textfield or richtext that allows a URL in WPF using C#

I have looked at various solutions on how to have a simple URL on a textfield, a rich text field in a WPF implementation using C#. Tried to implement solutions on Clicking HyperLinks in a RichTextBox ...
learner's user avatar
  • 781
0 votes
1 answer
115 views

HyperlinkButton NavigateUri does not work in Safari

I use HyperLinkButton and add method in c# code for click for him. Code method: void btnViewURL_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(viewURL) == false ...
user avatar
0 votes
1 answer
41 views

I have a string that has a reference to a document (example c:\users\testdocument.doc)

I just want to open it by clicking on a button or a hyperlink. It dont want to open it inside my program
chris's user avatar
  • 11