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 8061391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:19:27+00:00 2026-06-05T10:19:27+00:00

I have a WPF application that consumes a SharePoint list using Client Object Model.

  • 0

I have a WPF application that consumes a SharePoint list using Client Object Model.

The customer wants to be able to fill in one of the fields with Rich Text. This includes formatting like bold/color/font type/etc. It also includes hyperlinks.

In information I get from SharePoint is stored in a string, and looks something like this:

<div class=\”ExternalClass82C42B1E597D49188F88ECA8C4EEB083\”><p>Ticker Item 3 Body<span style=\”color:#000000\”></span>y<</p></div>

When I use the advise I found here: Can I bind HTML to a WPF Web Browser Control?

It comes out looking like this:

Ticker Item 3 Body​

What’s up with the little “​” at the end? Is there a correct way of showing Rich Text in my WPF app that includes clickable hyper links and formatting?

Thanks in advance.

  • 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-06-05T10:19:29+00:00Added an answer on June 5, 2026 at 10:19 am

    For anyone coming here and looking for a solution, the answer is twofold.

    1) The wrong question is being asked. Using a Web Browser Control is not the best way to do this. You can’t force links to open up in IE (at least, not easily), and the window will behave like a web browser. Pressing F5 will refresh the window, which will empty it, since there is no address in the browser.

    In any event, the issue was that WPF wasn’t using the correct character set. Adding this to your html will fix the browser issue:

    html = String.Format("<html><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; CHARSET=utf-8\"><body>{0}</body></html>", html);
    

    2) What you actually want to do is use a FlowDocumentScrollViewer. Instructions on how to do that are here:
    How can I get a FlowDocument Hyperlink to launch browser and go to URL in a WPF app?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that is using a WindowsFormsHost control to host a
I have a WPF application that I want to deploy to client PCs via
I have a WPF application that gets installed on the client machine through the
I have a WPF application that is targeting the .NET Framework 4.0 Client Profile.
I have a WPF application that has a list box of images. Right now
I have a WPF application that I want to launch using: Assembly.LoadFrom It works
I have a WPF MVVM application that has a model and services assembly. I'm
I have built a wpf application that is using EF and SQLCE4. Everything works
We have a WPF application that we've deployed to the customer. However, the application
I have a WPF application that is written using MVVM Prism. It has a

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.