FlowDocument 中同一行上的两个块
是否可以在 FlowDocument 中的同一行上渲染两个块(例如,两个部分)?
它似乎总是从下一行开始第二部分,我似乎无法解决这个问题。
使用 InlineUIContainer 的包装器可能可以工作,但是我应该在 InlineUIContainer 中放入什么?我需要渲染数万条这样的线,所以它需要相对高效。
Is it possible to have two blocks (say, two Sections) rendered on the same line in a FlowDocument?
It seems to always start the second section on the next line and I can't seem to work around this.
A wrapper using InlineUIContainer might work, but what do I put in the InlineUIContainer? I need to render tens of thousands of these lines, so it needs to be relatively efficient.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您应该使用表格。
例如,
您可以在每次需要时重复整个表,或者每次都将行添加到行组。
我还没有对几万张表或者几万行的表做过任何性能测试。我已经访问了单个流文档中大约一千个表的范围,并且 FlowDocumentReader 在该级别上保持了良好的性能。
Sounds like you should use a table.
E.g.
You could either repeat the whole table every time you need this, or just add rows to the row group every time.
I haven't done any performance testing with tens of thousands of tables or a table with tens of thousands of rows. I have go to the range of about a thousand tables in a single flow document and the FlowDocumentReader maintains good performance up to that level.