BBCode tag reference

The following basic set of BBCode tags are supported by the BBCodeBlock control. If you require more advanced text formatting features, you need to fallback to using XAML.

Tag Description
[b] Bold
[i] Italic
[u] Underline
[color={value}] Set foreground color where {value} is a valid XAML color string
[size={value}] Sets the font size measured in pixels
[url={link}] Renders a navigable hyperlink for the enclosed text. See also Link navigation with BBCodeBlock


  • Every opening tag must be followed by a closing tag.
  • BBCode tags can be nested. This snippet renders the text bold and italic: [b][i]some text[/i][/b]
  • Whenever a BBCode parse error occurs, the BBCodeBlock renders the actual BBCode.

Last edited Mar 11, 2013 at 9:02 PM by kozw, version 1


mrutter Aug 1, 2014 at 10:14 AM 
It should be interesting to implements a sort of bindings too.
For example:

"Hello [b][bind={UserName}][/b], you're logged!"

should display a text with the "UserName" property read from the DataContext and in bold.

BlazingArdor Nov 28, 2013 at 6:01 AM 
It should also be noted that "any" text inside brackets, i.e. [sometext] will be removed when parsing occurs.

pfre017 Mar 17, 2013 at 8:37 PM 
Are there plans to also implement sub- and superscript formatting?