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

  • Home
  • SEARCH
  • 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 6857893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:05:18+00:00 2026-05-27T02:05:18+00:00

Is it possible in WPF to spend HTML text in a TextBlock? All formatting

  • 0

Is it possible in WPF to spend HTML text in a TextBlock? All formatting and links are displayed automatically. I have a start page in my application that will over time make several types of texts, which different Formats. Im following an example with my HTML text.

<h1>Fett und schief</h1>
<p>Text <b>fett</b> und noch mehr Text <i>schief</i>.<br/>
<a href="http://www.google.de">hier</a>
  • 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-27T02:05:19+00:00Added an answer on May 27, 2026 at 2:05 am

    As BasB already answered, you can display HTML with the WebBrowser Control.
    I just wanted to add a short code sample:

    In XAML:

    <TextBlock x:Name="myTextBlock" Text="&lt;h1&gt;Fett und schief&lt;/h1&gt;" Margin="0,0,218,202"></TextBlock>
    <Button Width="200" Height="30" Click="Button_Click" Margin="291,0,12,281">Show HTML</Button>
     <WebBrowser x:Name="myWebBrowser" Margin="0,115,33,0"></WebBrowser>
    

    In Code Behind:

    private void Button_Click(object sender, RoutedEventArgs e)
    {
      myWebBrowser.NavigateToString(myTextBlock.Text);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to convert an existing WPF Application to SilverLight automatically/with minimal effort?
I have a WPF Application. It´s for testing a process. I start this over
Is it possible for a WPF Label to split itself automatically into several lines?
Is it possible to have a WPF window/element detect the drag'n'dropping of a file
Is it possible to find out whether WPF Window is loaded? I have a
As of last night, I decided to start learning about WPF and have been
I have a line of text in a textblock that reads: Detected [gesture] with
I have a WPF application which shows items in a DataGrid (XCeed DataGrid). The
I have a WPF Browser application, written in C#. In which have a process
Possible Duplicate: WPF versus Winforms I have been using visual C# for a while

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.