Documento de flujo con múltiples columnas-WPF
Frecuentes
Visto 2,402 equipos
1 Respuestas
2
Asuming your drawing is not just badly drawn and you really want something like sections with different heights aligned, you can use a table (notice the number of rows and the rowspans):
<FlowDocument>
<Table>
<Table.Columns>
<TableColumn/>
<TableColumn/>
</Table.Columns>
<TableRowGroup>
<TableRow Background="Aqua">
<TableCell ColumnSpan="2">
<Paragraph>Cell with text Cell with text Cell with text Cell with text Cell with text Cell with text Cell with text Cell with text</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell Background="Bisque" RowSpan="2">
<Paragraph>Cell 1 with a lot of text Cell 1 with a lot of text Cell 1 with a lot of text Cell 1 with a lot of text Cell 1 with a lot of text</Paragraph>
</TableCell>
<TableCell Background="Bisque">
<Paragraph>Cell 2 with a lot of text with a lot of text with a lot of text with a lot of text with a lot of text</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell Background="Bisque" RowSpan="2">
<Paragraph>Cell 2 with a lot of text with a lot of text with a lot of text with a lot of text with a lot of text</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell Background="Bisque">
<Paragraph>Cell 1 with a lot of text with a lot of text with a lot of text with a lot of text with a lot of text</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
que salidas:
contestado el 28 de mayo de 14 a las 12:05
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas c# wpf or haz tu propia pregunta.
Probaste esto -> msdn.microsoft.com/en-us/library/ms747133%28v=vs.110%29.aspx - Mario Stoilov
@MarioStoilov will table let you have overlaps? - Gusdor
I don't see overlaps in the image the op has given. And no, I don't think it will let you have overlaps - Mario Stoilov
BTW, FlowDocs don't offer the same layout possibilities WPF does. Column-Designs are very restricted, meaning no Autosizing. One can work-around that but it takes a little effort. Also alignment is not so nice (right-aligned f.e.) - Gope