如何为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>
答案 0 :(得分:0)