Adding style to Paragraph
<FlowDocumentPageViewer xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<FlowDocumentPageViewer.Resources>
<Style x:Key="HeaderStyle">
<Setter Property="TextBlock.FontFamily" Value="Palatino Linotype" />
<Setter Property="TextBlock.FontWeight" Value="Bold" />
<Setter Property="TextBlock.FontSize" Value="20" />
<Setter Property="TextBlock.Margin" Value="10" />
</Style>
<Style x:Key="mainContentStyle">
<Setter Property="TextBlock.FontFamily" Value="Palatino Linotype" />
<Setter Property="TextBlock.FontSize" Value="11" />
<Setter Property="TextBlock.TextWrapping" Value="Wrap" />
<Setter Property="TextBlock.Margin" Value="3,10,3,10" />
</Style>
</FlowDocumentPageViewer.Resources>
<FlowDocument ColumnWidth="800">
<Paragraph Style="{StaticResource HeaderStyle}">Header</Paragraph>
<Paragraph Style="{StaticResource mainContentStyle}">
content<Hyperlink NavigateUri="another.xaml">FlowDocument</Hyperlink>
</Paragraph>
</FlowDocument>
</FlowDocumentPageViewer>
Related examples in the same category