The following WPF window is available in .Net Framework 4.0:
<Window x:Class="EasyDiagnost.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <ListBox Margin="0" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> <RichTextBox> <FlowDocument> <Paragraph> <Run Text="One"/> </Paragraph> </FlowDocument> </RichTextBox> <RichTextBox> <FlowDocument> <Paragraph> <Run Text="Two"/> </Paragraph> </FlowDocument> </RichTextBox> </ListBox> </Grid> </Window>
Text in RichTextBox is displayed either from left to right, and from top to bottom. How to fix it? Already the whole head broke!