Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 984353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:00:09+00:00 2026-05-16T05:00:09+00:00

I just found myself a new challenge: Make a Word Processor that is in

  • 0

I just found myself a new challenge:
Make a Word Processor that is in handling more like the web than plain text.
Designing a nice framework for this is what i cant wait to start with, but i do need to know what the possibilities are at the GUI side (it will probably have loads of GUI challenges).

So the basic thing that I need some sort of Control where I can make parts of my text clickable / mouse-over-able.

I’m kinda new to WPF and not sure how to do this.
Has anybody an idea how to make this?
Are there examples?
Are there already controls for this?

Thanks in advance

EDIT:

I found out some way to do it with a richtextbox:

// Create a FlowDocument to contain content for the RichTextBox.
FlowDocument myFlowDoc = new FlowDocument();

// Add paragraphs to the FlowDocument.

Hyperlink myLink = new Hyperlink();
myLink.Inlines.Add("hyperlink");
myLink.NavigateUri = new Uri("http://www.stackoverflow.com");

// Create a paragraph and add the Run and hyperlink to it.
Paragraph myParagraph = new Paragraph();
myParagraph.Inlines.Add("check this link out: ");
myParagraph.Inlines.Add(myLink);
myFlowDoc.Blocks.Add(myParagraph);

// Add initial content to the RichTextBox.
richTextBox1.Document = myFlowDoc;

I now get a nice hyperlink in my textbox… except when i click it, nothing happens.
what am i missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:00:10+00:00Added an answer on May 16, 2026 at 5:00 am

    You can use the Hyperlink class. It’s a FrameworkContentElement, so you can use it in a TextBlock or FlowDocument or anywhere else you can embed content.

    <TextBlock>
        <Run>Text</Run>
        <Hyperlink NavigateUri="http://stackoverflow.com">with</Hyperlink>
        <Run>some</Run>
        <Hyperlink NavigateUri="http://google.com">hyperlinks</Hyperlink>
    </TextBlock>
    

    You may want to look at using a RichTextBox as part of your editor. This will host a FlowDocument, which can contain content such as Hyperlinks.


    Update: There are two ways to handle clicks on the Hyperlink. One is to handle the RequestNavigate event. It is a Routed Event, so you can either attach a handler to the Hyperlink itself or you can attach one to an element higher in the tree such as the Window or the RichTextBox:

    // On a specific Hyperlink
    myLink.RequestNavigate +=
        new RequestNavigateEventHandler(RequestNavigateHandler);
    // To handle all Hyperlinks in the RichTextBox
    richTextBox1.AddHandler(Hyperlink.RequestNavigateEvent,
        new RequestNavigateEventHandler(RequestNavigateHandler));
    

    The other way is to use commanding by setting the Command property on the Hyperlink to an ICommand implementation. The Executed method on the ICommand will be called when the Hyperlink is clicked.

    If you want to launch a browser in the handler, you can pass the URI to Process.Start:

    private void RequestNavigateHandler(object sender, RequestNavigateEventArgs e)
    {
        Process.Start(e.Uri.ToString());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to web development, and have found myself stuck on how to
I often found myself when writing a new class that inside a class I
MVC is a fairly new concept for me and I have just found myself
Concerning pages that build a web application: Lately, I have found myself creating web
I just recently found myself writing this line of code, which i did not
Just found out that the video output of the iPad is not a system
I just found out that every time onclick event for my <button> placed inside
I just found out about ie7-js ; IE7 is a JavaScript library to make
I'm a veteran of C and very new to web design altogether. I've found
Since Heroku migrated to their new database tiers, I've found myself without the automated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.