I have html file containing text with strong tag can say <strong>Windows Presentation Framework</strong>
. I want to implement strong tag in flow document of WPF. I tried by setting font weight property to bold but not find an expected result/output as in html file. Any clue or hint on how to do it?
For <b>
tag i tried with :
flowdocument.FontWeight = FontWeights.Bold;
I am trying to say whether I am go for class FontWeights(Bold
or ExtraBold
or SemiBold
or Normal
) or class FontStretches(Expanded
or SemiExpanded
or ExtraExpanded
or Normal
)
Your content should look like this in XAML:
Have a look at the link below for more information on FlowDocument structure - it has it's own markup scheme like HTML (except it's XML): http://msdn.microsoft.com/en-us/library/aa970786(v=vs.110).aspx
Edit: To the downvoters - copy and paste this code into any XAML designer - it is CORRECT! It achieves the same typographic effect as
<strong>
in HTML.