For example if I have this:
string message = "The Quick Brown Fox";
someTextBlock.Text = message;
it will show by default like this:
The Quick Brown Fox
How to I make it show up in a TextBlock (or any element with content)?
Like this: The Quick Brown Fox
Note:
By “inline” I am refering to how this is done in HTML:
someDiv.InnerHtml = "The <b>Quick</b> Brown <b>Fox</b>";
It is better to do it in XAML like this:
But you also can do it in code via
Inlinesproperty ofTextBlock: