Text Justification
<Window x:Class="Documents.TextJustification" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TextJustification" Height="496" Width="479" > <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <FlowDocumentScrollViewer> <FlowDocument FontSize="22"> <Paragraph> this is a paragraph. </Paragraph> </FlowDocument> </FlowDocumentScrollViewer> <FlowDocumentScrollViewer Grid.Row="1" > <FlowDocument Background="LightYellow" IsOptimalParagraphEnabled="True" IsHyphenationEnabled="True" FontSize="22" > <Paragraph> this is a paragraph. </Paragraph> </FlowDocument> </FlowDocumentScrollViewer> </Grid> </Window>