Search code examples
c#wpftextblock

WPF Textblock / Set BOLD, ITALIC, UNDERLINE tags direct via Inlines.Add()


It is here any solution for direct pasting TextBlock Inlines with HTML markup in C# code like this:

string example = "Here is <Bold>bold</Bold> text, and here is <Italic>italic</Italic>.";
TextBlock.Inlines.Add(example);

Solution

  • You could have a look at this project