开发者

Bug in FlowDocument Table?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜