Bug in FlowDocument Table?

狂风中的少年 提交于 2019-12-07 21:18:48

问题


first of all, Width calculation of FlowDocuments TableColumns is a mess. but this is rather ridiculous:

<FlowDocumentScrollViewer>
    <FlowDocument>
     <Paragraph>text that's not visible</Paragraph>
     <Table BorderThickness="0.7559" >
        <Table.Columns>
         <TableColumn Width="100" />
        </Table.Columns>
        <TableRowGroup>
         <TableRow>
            <TableCell/>
         </TableRow>
        </TableRowGroup>
     </Table>
    </FlowDocument>
</FlowDocumentScrollViewer>

this actually shows nothing. So the table seems to mess up the whole document. If I either take out the Width="100" or change the Borderthickness to something less precise like BorderThickness="0.755" it does show the table and Paragraph as expected. (Trying things out with this code even crashes Kaxaml.)

This is a very stripped down solution. My real FlowDocument gets calculated based on other data so it's not like I could just use a different value based on visual inspection.

Can someone tell me what is happening here? And how I can solve this issue?

EDIT:

As suggested I added a bug report.

来源:https://stackoverflow.com/questions/5868332/bug-in-flowdocument-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!