开发者

FlowDocument TableColumn Width with star notation doesn't work consistently?

开发者 https://www.devze.com 2023-04-01 16:35 出处:网络
Can anyone explain why these two documents show differently? Good one: <FlowDocument> <Table>

Can anyone explain why these two documents show differently?

Good one:

<FlowDocument>
  <Table>
    <Table.Columns>
      <TableColumn Width="1*" />
      <TableColumn Width="2*" />
    </Table.Columns>
    <TableRowGroup>
      <TableRow>
        <TableCell>
          <Paragraph>
            <Run>Name</Run>
          </Paragraph>
        </TableCell>
        <TableCell>
          <Paragraph>
            <Run>Address</Run>
          </Paragraph>
        </TableCell>
      </TableRow>
    </TableRowGroup>
  </Table>
</FlowDocument>

Bad one:

<FlowDocument>
  <Table>
    <Table.Columns>
      <TableColumn Width="1000*" />
      <TableColumn Width="2000*" />
    </Table.Columns>
    <TableRowGroup>
      <TableRow>
        <TableCell>
          <Paragraph>
            <Run>Name</Run>
          </Paragraph>
        </TableCell>
        <TableCell>
          <Paragraph>
            <Run>Address</Run>
          </Paragraph>
        </TableCell>
      </TableRow>
    </TableRowGroup>
  </Table>
</FlowDocument>

The only difference is th开发者_Go百科e multiplier of the star. Is this a bug?

0

精彩评论

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

关注公众号