Hi Anthony,
Unlike an UIElement, a ContentElement is usually used to display data in
flow layout and doesn't have a MinHeight (dependency) property. TableCell
is a ContentElement.
I'm not sure if following workaround will work for you:
We can set TableCell's Padding property to make some extra room before the
bottom border:
<RichTextBox >
<FlowDocument>
<Table>
<TableRowGroup>
<TableRow>
<TableCell Padding="0,0,0,20" >
<Paragraph>Paragraph 1</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
<Paragraph>Paragraph 2</Paragraph>
</FlowDocument>
</RichTextBox>
If you're using code, you can determine if the TableCell has content or not
to use different padding size:
Pseudo code:
If(myTableCell.Blocks.Count == 0)
{
myTableCell.Padding = someThicknessForEmptyTableCell;
}
else
{
myTableCell.Padding =
someThicknessForTableCellsWithContent;
}
Please let me know if it helps.
Regards,
Walter Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.