내용에 따라 논리적으로 열의 크기를 조정할 테이블이 필요합니다. 이 WPF 가능합니까? 여기 WPF FlowDocument 테이블 - 자동 맞춤 옵션?
alt text http://img43.imageshack.us/img43/2640/flowdocument.jpg
내가 함께 일하고 있어요 코드입니다 : 그것은 아주 당신이 찾고하지 무슨<Window x:Class="FlowDocument.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Window.Resources>
<Style TargetType="{x:Type TableCell}">
<Setter Property="BorderBrush" Value="Gray" />
<Setter Property="BorderThickness" Value="3" />
</Style>
<Style TargetType="{x:Type Paragraph}">
<Setter Property="Padding" Value="2, 2, 2, 2" />
</Style>
</Window.Resources>
<Grid>
<FlowDocumentScrollViewer>
<FlowDocument>
<Table>
<Table.Columns>
<TableColumn Background="LightBlue" />
<TableColumn Background="Coral" />
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell>
<Paragraph>This is a long piece of text</Paragraph>
</TableCell>
<TableCell>
<Paragraph>This isn't</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Paragraph>This is a another long piece of text. The column should be wider than the other one!</Paragraph>
</TableCell>
<TableCell>
<Paragraph>Ditto</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
</FlowDocumentScrollViewer>
</Grid>
</Window>
나는 문자 그대로 정답은 단순한 "아니오, 할 수 없다"고 생각합니다. 이 정보가 더 유용하므로 틱할 것입니다. –