RichTextBox 的绑定List<String>
方式。在 xaml 中:错误是List<string>?
<RichTextBox Grid.Row="1" Grid.ColumnSpan="3"
Style="{StaticResource RichTextBoxStyle}" Foreground="Red"
IsReadOnly="True">
<FlowDocument>
<List>
<ListItem>
<Paragraph>
<Run Text="{Binding Error}"/>
</Paragraph>
</ListItem>
</List>
</FlowDocument>
</RichTextBox>