c# - WPF: is there a way to do inline formatting? -


is there way use inline formatting (like swing's html tagging within labels) wpf? not find documentation.

the textblock (there may others) can make use of several inline formatting elements.

[example lifted verbatim from: http://wpf.2000things.com/2011/03/14/245-easily-inline-text-formatting-codes-with-textblock-control ]

<textblock margin="10" height="100" fontsize="14" width="290" textwrapping="wrap">     <bold>few</bold>, happy <bold>few</bold>, band of <underline>brothers</underline>; to-day sheds <italic>blood</italic> me shall <underline>brother</underline>; ne'er <italic>vile</italic>, day shall <bold>gentle</bold> <italic>condition</italic>;" </textblock> 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -